Check for payment driver
This commit is contained in:
parent
41f5e4ed9a
commit
5be6abfa93
1 changed files with 5 additions and 0 deletions
|
|
@ -58,6 +58,11 @@ class PaymentService extends BaseService
|
|||
}
|
||||
|
||||
$paymentDriver = $account->paymentDriver($invitation, GATEWAY_TYPE_TOKEN);
|
||||
|
||||
if ( ! $paymentDriver) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$customer = $paymentDriver->customer();
|
||||
|
||||
if ( ! $customer) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue