feat: implement payment verification methods for magic wallet and discount wallet
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 2m37s
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 2m37s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user