wip
This commit is contained in:
@@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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'],
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user