feat: Implement JWT authentication for client API and add transaction verification endpoint.
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user