update sometimes

This commit is contained in:
pbao9
2025-07-28 17:02:13 +07:00
parent c1698e7fe7
commit 5ea42105f9
25 changed files with 259 additions and 325 deletions
@@ -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);