update sometimes
This commit is contained in:
@@ -37,6 +37,8 @@ class RechargeController extends Controller
|
||||
|
||||
public function paymentProcess(RechargeRequest $request)
|
||||
{
|
||||
$data = $request->validated();
|
||||
|
||||
$auth = customer();
|
||||
if (!$auth) {
|
||||
return redirect()->route('auth.index')->withErrors('Vui lòng đăng nhập');
|
||||
@@ -44,7 +46,7 @@ class RechargeController extends Controller
|
||||
|
||||
// Chuẩn bị dữ liệu cho VNPAY
|
||||
$paymentData = [
|
||||
'amount' => $request->money,
|
||||
'amount' => $data['total_amount'],
|
||||
'language' => 'vn',
|
||||
];
|
||||
$paymentUrl = $this->vnpayService->createPaymentUrl($paymentData);
|
||||
|
||||
Reference in New Issue
Block a user