feat: show PaymentStatus on discount orders + failed payment UX
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 6m25s

- Updated NuGet to Protobuf v0.0.179
- Added PaymentStatus to DiscountOrderSummary and DiscountOrderDetail records
- OrderDetail: show payment status chip (Pending/Success/Failed/Refunded)
- OrderDetail: show alert with re-order link for failed payments
- Orders: updated desktop table and mobile cards with PaymentStatus chips
- Added GetPaymentStatusText() and GetPaymentStatusColor() helpers
This commit is contained in:
masoodafar-web
2026-02-16 22:38:40 +03:30
parent 0df5d6a595
commit 81f32e6ec1
4 changed files with 41 additions and 7 deletions
@@ -52,9 +52,9 @@
<MudTd>@FormatPrice(context.GatewayAmount)</MudTd>
<MudTd>
<MudChip T="string" Size="Size.Small"
Color="@(context.PaymentCompleted ? Color.Success : Color.Warning)"
Color="@DiscountOrderService.GetPaymentStatusColor(context.PaymentStatus)"
Variant="Variant.Filled">
@(context.PaymentCompleted ? "پرداخت شده" : "در انتظار پرداخت")
@DiscountOrderService.GetPaymentStatusText(context.PaymentStatus)
</MudChip>
</MudTd>
<MudTd>
@@ -87,9 +87,9 @@
<MudStack Row="true" Justify="Justify.SpaceBetween" AlignItems="AlignItems.Center">
<MudText Typo="Typo.subtitle2">سفارش #@order.OrderNumber</MudText>
<MudChip T="string" Size="Size.Small"
Color="@(order.PaymentCompleted ? Color.Success : Color.Warning)"
Color="@DiscountOrderService.GetPaymentStatusColor(order.PaymentStatus)"
Variant="Variant.Filled">
@(order.PaymentCompleted ? "پرداخت شده" : "در انتظار")
@DiscountOrderService.GetPaymentStatusText(order.PaymentStatus)
</MudChip>
</MudStack>
<MudStack Row="true" Justify="Justify.SpaceBetween">