This commit is contained in:
2026-03-12 01:51:27 +05:00
parent 924ed64527
commit 45ca714b17
3 changed files with 57 additions and 0 deletions

View File

@@ -663,6 +663,14 @@ function syncVisaWithAzatAPI(VisaMasterPaymentOrderItem $orderItem): array
];
}
if (! isset($response['authRefNum'])) {
warn('payment missing authRefNum', $onlinePaymentResource->orderId);
return [
'error' => 'authRefNum missing',
'type' => 'modal',
];
}
$systemRawResponse = syncWithBankSystem(
online_payment_order_uuid: $onlinePaymentResource->orderId,
bank_unique_code: $visaPaymentOrder->branch->unique_code,
@@ -709,3 +717,12 @@ function syncVisaWithAzatAPI(VisaMasterPaymentOrderItem $orderItem): array
'type' => 'modal',
];
}
function warn($message, $content) {
DB::table('warnings')->insert([
$message => $message,
$content => $content,
'created_at' => now(),
'updated_at' => now(),
]);
}