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:
@@ -112,6 +112,27 @@ public class DiscountOrderService
|
||||
catch { return false; }
|
||||
}
|
||||
|
||||
public async Task<(bool Success, string Message, long OrderId)> VerifyDiscountOrderPaymentAsync(
|
||||
long orderId, string authority, string status)
|
||||
{
|
||||
try
|
||||
{
|
||||
var response = await _client.CustomerVerifyDiscountOrderPaymentAsync(
|
||||
new CustomerVerifyDiscountOrderPaymentRequest
|
||||
{
|
||||
OrderId = orderId,
|
||||
Authority = authority,
|
||||
Status = status
|
||||
});
|
||||
|
||||
return (response.Success, response.Message, response.OrderId);
|
||||
}
|
||||
catch (Grpc.Core.RpcException ex)
|
||||
{
|
||||
return (false, ex.Status.Detail ?? "خطا در بررسی وضعیت پرداخت", orderId);
|
||||
}
|
||||
}
|
||||
|
||||
public async Task<DiscountOrderListResult> GetUserOrdersAsync(int page = 1, int pageSize = 10)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user