This commit is contained in:
2026-03-12 02:09:44 +05:00
parent e98674aa26
commit 2bd2c45ddb
4 changed files with 56 additions and 1 deletions

View File

@@ -664,7 +664,9 @@ function syncVisaWithAzatAPI(VisaMasterPaymentOrderItem $orderItem): array
}
if (! isset($response['authRefNum'])) {
warn('payment missing authRefNum', $onlinePaymentResource->orderId);
warn('missing-authRefNum', $onlinePaymentResource->orderId);
ignorePayment('missing-authRefNum', $orderItem);
return [
'error' => 'authRefNum missing',
'type' => 'modal',
@@ -726,3 +728,12 @@ function warn($message, $content) {
'updated_at' => now(),
]);
}
function ignorePayment($message, $item) {
DB::table('ignore_visa_payments')->insert([
'message' => $message,
'payment_id' => $item->id,
'created_at' => now(),
'updated_at' => now(),
]);
}