feat: Implement JWT authentication for client API and add transaction verification endpoint.

This commit is contained in:
pbao9
2026-02-19 15:38:43 +07:00
parent 75791d6257
commit c7215ababc
15 changed files with 526 additions and 55 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ class VNPayService
$vnp_BankCode = $data['bankCode'] ?? '';
$vnp_IpAddr = request()->ip();
$user = Auth::guard('sanctum')->user() ?? Auth::guard('users')->user();
$user = Auth::guard('client')->user() ?? Auth::guard('users')->user();
$userName = $user ? $user->fullname : 'Khách';
$isDeposit = isset($data['transaction_ref']);