wip
This commit is contained in:
@@ -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(),
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user