This commit is contained in:
nurmuhammet committed 2025-11-02 17:29:27 +05:00
1 parent da6c5134fb
commit eaa8ecf1d4
2 files changed
+8 -12

No files matched your search

@@ -22,10 +22,13 @@ public function store(Request $request): View
$paymentStatus = $onlinePaymentRepository->checkPayment($request->string('orderId')); $paymentStatus = $onlinePaymentRepository->checkPayment($request->string('orderId'));
info([ return $onlinePaymentRepository->paymentStatusView([
'hello' => $paymentStatus 'success' => $paymentStatus['success'],
'title' => __('Payment has failed'),
'pnr' => $paymentStatus['paymentHistory']->orderNumber,
'branch_name' => $paymentStatus['bank_branch']->name,
'price_amount' => $paymentStatus['paymentHistory']->amount.' TMT',
'return_url' => $paymentStatus['return_url'],
]); ]);
return $onlinePaymentRepository->paymentStatusView($paymentStatus);
} }
} }
@@ -298,13 +298,6 @@ public function createHistory(): void
*/ */
public function paymentStatusView(array $data): View public function paymentStatusView(array $data): View
{ {
return view('module.online-payment::payment-status', [ return view('module.online-payment::payment-status', compact('data'));
'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['return_url'],
]);
} }
} }