feat: implement payment verification methods for magic wallet and discount wallet
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 2m37s

This commit is contained in:
masoodafar-web
2026-02-28 03:27:58 +03:30
parent 2b1dc47dc7
commit ff3696cda3
4 changed files with 239 additions and 35 deletions
@@ -266,6 +266,44 @@ public class WalletService
}
}
// ============= Wallet Verify Methods =============
public async Task<(bool Success, string Message)> VerifyMagicChargeAsync(string authority, string status)
{
try
{
var response = await _client.VerifyMagicChargeAsync(new VerifyWalletChargeRequest
{
Authority = authority,
Status = status
});
return (response.Success, response.Message);
}
catch (Grpc.Core.RpcException ex)
{
return (false, ex.Status.Detail ?? "خطا در بررسی وضعیت پرداخت");
}
}
public async Task<(bool Success, string Message)> VerifyDiscountChargeAsync(string authority, string status)
{
try
{
var response = await _client.VerifyDiscountChargeAsync(new VerifyWalletChargeRequest
{
Authority = authority,
Status = status
});
return (response.Success, response.Message);
}
catch (Grpc.Core.RpcException ex)
{
return (false, ex.Status.Detail ?? "خطا در بررسی وضعیت پرداخت");
}
}
public int GetWalletMode()
{
try