This commit is contained in:
2025-11-02 17:29:27 +05:00
parent da6c5134fb
commit eaa8ecf1d4
2 changed files with 8 additions and 12 deletions

View File

@@ -22,10 +22,13 @@ class HalkbankOnlinePaymentController extends Controller
$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);
} }
} }

View File

@@ -298,13 +298,6 @@ class OnlinePaymentRepository
*/ */
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'],
]);
} }
} }