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