fix(ZarinpalReconciliationJob): log information when unverified list is empty
Build and Deploy to Kubernetes / build-and-deploy (push) Has been cancelled
Build and Deploy to Kubernetes / build-and-deploy (push) Has been cancelled
This commit is contained in:
@@ -120,8 +120,10 @@ public class ZarinpalReconciliationJob
|
|||||||
pt.Created < cutoff &&
|
pt.Created < cutoff &&
|
||||||
pt.Created > maxAge)
|
pt.Created > maxAge)
|
||||||
.ToListAsync(ct);
|
.ToListAsync(ct);
|
||||||
|
}else{
|
||||||
|
_logger.LّogInformation(
|
||||||
|
"ZarinpalReconciliationJob: ZP unVerified list is empty");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fallback: query our own DB for stale pending transactions and try to verify them.
|
// Fallback: query our own DB for stale pending transactions and try to verify them.
|
||||||
// Zarinpal's verify call will return an error for any authority where payment was NOT made,
|
// Zarinpal's verify call will return an error for any authority where payment was NOT made,
|
||||||
// so this is safe — we only apply business logic when ZP confirms success (code 100/101).
|
// so this is safe — we only apply business logic when ZP confirms success (code 100/101).
|
||||||
|
|||||||
Reference in New Issue
Block a user