diff --git a/app/Modules/OnlinePayment/Repositories/OnlinePaymentRepository.php b/app/Modules/OnlinePayment/Repositories/OnlinePaymentRepository.php index 37280a5..b9a21f4 100644 --- a/app/Modules/OnlinePayment/Repositories/OnlinePaymentRepository.php +++ b/app/Modules/OnlinePayment/Repositories/OnlinePaymentRepository.php @@ -298,6 +298,13 @@ class OnlinePaymentRepository */ public function paymentStatusView(array $data): View { - return view('module.online-payment::payment-status', compact('data')); + return view('module.online-payment::payment-status', [ + 'success' => $data['success'], + 'title' => __('Payment has failed'), + 'pnr' => $data['paymentHistory']->orderNumber, + 'branch_name' => $data['bank_branch']->name, + 'price_amount' => $data['paymentHistory']->amount.' TMT', + 'return_url' => $data['returnURL'], + ]); } }