wip
This commit is contained in:
@@ -22,10 +22,13 @@ class HalkbankOnlinePaymentController extends Controller
|
||||
|
||||
$paymentStatus = $onlinePaymentRepository->checkPayment($request->string('orderId'));
|
||||
|
||||
info([
|
||||
'hello' => $paymentStatus
|
||||
return $onlinePaymentRepository->paymentStatusView([
|
||||
'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 @@ class OnlinePaymentRepository
|
||||
*/
|
||||
public function paymentStatusView(array $data): View
|
||||
{
|
||||
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['return_url'],
|
||||
]);
|
||||
return view('module.online-payment::payment-status', compact('data'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user