Merge branch 'kub-stage' into production
Build and Deploy to Production / build-and-deploy (push) Failing after 17m21s
Build and Deploy to Production / build-and-deploy (push) Failing after 17m21s
This commit is contained in:
@@ -143,6 +143,9 @@
|
||||
case "discount-wallet":
|
||||
await VerifyDiscountWalletCharge();
|
||||
break;
|
||||
case "credit-wallet":
|
||||
await VerifyCreditWalletCharge();
|
||||
break;
|
||||
case "discount-order":
|
||||
await VerifyDiscountOrderPayment();
|
||||
break;
|
||||
@@ -254,6 +257,35 @@
|
||||
await UpdateWalletBalance();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// تأیید شارژ کیف پول اصلی
|
||||
/// </summary>
|
||||
private async Task VerifyCreditWalletCharge()
|
||||
{
|
||||
_successReturnUrl = "/profile/charge-credit-wallet?payment=success";
|
||||
_successReturnText = "بازگشت به شارژ کیف پول اصلی";
|
||||
_failReturnUrl = "/profile/charge-credit-wallet?payment=failed";
|
||||
_failReturnText = "بازگشت به شارژ کیف پول اصلی";
|
||||
|
||||
if (string.IsNullOrEmpty(Authority))
|
||||
{
|
||||
_isSuccess = false;
|
||||
_message = "کد Authority نامعتبر است";
|
||||
return;
|
||||
}
|
||||
|
||||
var (success, message) = await WalletService.VerifyCreditChargeAsync(
|
||||
Authority, Status ?? "NOK");
|
||||
|
||||
_isSuccess = success;
|
||||
_message = message;
|
||||
|
||||
if (_isSuccess)
|
||||
{
|
||||
await UpdateWalletBalance();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// تأیید پرداخت سفارش فروشگاه تخفیفی
|
||||
@@ -308,6 +340,7 @@
|
||||
{
|
||||
"magic-wallet" => "/profile/magic-wallet",
|
||||
"discount-wallet" => "/profile/charge-discount-wallet",
|
||||
"credit-wallet" => "/profile/charge-credit-wallet",
|
||||
"discount-order" => "/discount-store",
|
||||
_ => "/profile"
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user