feat(payment): add GetUnverifiedAuthoritiesAsync method to IPaymentGatewayService and ZarinPalPaymentService for payment reconciliation
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 8m7s
Build and Deploy to Kubernetes / build-and-deploy (push) Failing after 8m7s
- Introduced GetUnverifiedAuthoritiesAsync method to retrieve authorities with unverified payments. - Implemented ZarinPal-specific logic for fetching unverified authorities from the new endpoint. - Added background job for Zarinpal payment reconciliation every 30 minutes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -47,6 +47,17 @@ public interface IPaymentGatewayService
|
||||
"درگاه پرداخت باید متد VerifyPaymentAsync با مبلغ را پیادهسازی کند");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// فهرست Authorityهایی که کاربر پرداخت کرده ولی سیستم هنوز Verify نکرده
|
||||
/// این متد برای Reconciliation در background job استفاده میشود.
|
||||
/// پیادهسازی پیشفرض لیست خالی برمیگرداند (درگاههایی که این API را ندارند).
|
||||
/// </summary>
|
||||
Task<IReadOnlyList<string>> GetUnverifiedAuthoritiesAsync(
|
||||
CancellationToken cancellationToken = default)
|
||||
{
|
||||
return Task.FromResult<IReadOnlyList<string>>(Array.Empty<string>());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// واریز مبلغ به حساب کاربر (برداشت از کیف پول)
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user