Update payment status and amount fields in user orders
This commit is contained in:
@@ -26,21 +26,24 @@
|
||||
<MudStack Spacing="1">
|
||||
<MudText Typo="Typo.subtitle2">خلاصه سفارش</MudText>
|
||||
<MudDivider />
|
||||
<MudText Typo="Typo.body2">مبلغ: @_model.Price.ToString("N0") تومان</MudText>
|
||||
<MudText Typo="Typo.body2">مبلغ: @_model.Amount.ToString("N0") تومان</MudText>
|
||||
<MudText Typo="Typo.body2">شناسه پرداخت: @_model.TransactionId</MudText>
|
||||
<MudText Typo="Typo.body2">
|
||||
تاریخ پرداخت:
|
||||
@_model.PaymentDate.ToDateTime().ToLocalTime().ToString("yyyy/MM/dd HH:mm")
|
||||
@_model.PaymentDate.ToDateTime().ToLocalTime().MiladiToJalaliWithTime()
|
||||
</MudText>
|
||||
<MudText Typo="Typo.body2">
|
||||
روش پرداخت:
|
||||
@GetPaymentMethodText(_model.PaymentMethod)
|
||||
@GetPaymentMethodText(_model.PaymentMethod.GetHashCode())
|
||||
</MudText>
|
||||
<MudText Typo="Typo.body2">
|
||||
وضعیت پرداخت:
|
||||
@if (_model.PaymentStatus)
|
||||
@if (_model.PaymentStatus==PaymentStatus.Success)
|
||||
{
|
||||
<MudChip T="string" Color="Color.Success" Size="Size.Small">پرداخت شده</MudChip>
|
||||
}else if (_model.PaymentStatus==PaymentStatus.Pending)
|
||||
{
|
||||
<MudChip T="string" Color="Color.Success" Size="Size.Small">در انتظار پرداخت</MudChip>
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user