mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Check for payment driver
This commit is contained in:
parent
96b4b19509
commit
a0817d8de3
@ -73,6 +73,11 @@ class PaymentService extends BaseService
|
||||
}
|
||||
|
||||
$paymentDriver = $account->paymentDriver($invitation, GATEWAY_TYPE_TOKEN);
|
||||
|
||||
if ( ! $paymentDriver) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$customer = $paymentDriver->customer();
|
||||
|
||||
if ( ! $customer) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user