fix(auth): require verified identity for wallet and gift card
This commit is contained in:
@@ -53,6 +53,7 @@ class WalletPaymentController extends Controller
|
||||
}
|
||||
|
||||
$customer = auth('customer')->user();
|
||||
self::assertCustomerIdentityVerified($customer instanceof \App\Models\Customer ? $customer : null);
|
||||
$withdraw = Withdraw::create([
|
||||
'customer_id' => $customer->id,
|
||||
'cash' => $amount,
|
||||
|
||||
@@ -72,6 +72,7 @@ class paypingController extends Controller
|
||||
public function startTransation(Request $request)
|
||||
{
|
||||
$user = auth()->user();
|
||||
self::assertCustomerIdentityVerified($user instanceof \App\Models\Customer ? $user : null);
|
||||
$finalPriseP = $request->value;
|
||||
if ($user->id == 4) {
|
||||
$finalPriseP = 10700;
|
||||
|
||||
Reference in New Issue
Block a user