This commit is contained in:
nurmuhammet committed 2026-03-12 01:51:27 +05:00
1 parent 924ed64527
commit 45ca714b17
3 files changed
+57

No files matched your search

+17
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(),
]);
}