This commit is contained in:
2024-11-23 12:43:15 +05:00
parent 47f45a89e8
commit fdf0455dc1

View File

@@ -193,9 +193,12 @@ class OnlinePaymentRepo
'paymentStatus' => OnlinePaymentRepo::PAID,
]);
} else {
$paymentHistory->update([
$resource->update([
'payer_name' => $response['cardholderName'] ?? '-',
'payer_card' => $response['Pan'] ?? '-',
]);
$paymentHistory->update([
'paymentStatus' => OnlinePaymentRepo::FAILED,
]);
}