This commit is contained in:
2025-09-10 17:19:00 +05:00
parent 5896fe4d56
commit 23ee71f4a4

View File

@@ -53,13 +53,13 @@ trait HandlesCardOrderPayments
'paymentStatus' => OnlinePaymentRepo::PAID, 'paymentStatus' => OnlinePaymentRepo::PAID,
]); ]);
return static::successfulPaymentResponse($paymentHistory, $bank_branch, $resource, $returnURL); return static::successfulPaymentResponse($paymentHistory, $bank_branch, $resource, $returnURL, $response);
} }
$paymentHistory->update([ $paymentHistory->update([
'paymentStatus' => OnlinePaymentRepo::FAILED, 'paymentStatus' => OnlinePaymentRepo::FAILED,
]); ]);
return static::failedPaymentResponse($paymentHistory, $bank_branch, $resource, $returnURL); return static::failedPaymentResponse($paymentHistory, $bank_branch, $resource, $returnURL, $response);
} }
} }