mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Check for payment driver
This commit is contained in:
parent
41f5e4ed9a
commit
5be6abfa93
@ -58,6 +58,11 @@ class PaymentService extends BaseService
|
|||||||
}
|
}
|
||||||
|
|
||||||
$paymentDriver = $account->paymentDriver($invitation, GATEWAY_TYPE_TOKEN);
|
$paymentDriver = $account->paymentDriver($invitation, GATEWAY_TYPE_TOKEN);
|
||||||
|
|
||||||
|
if ( ! $paymentDriver) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$customer = $paymentDriver->customer();
|
$customer = $paymentDriver->customer();
|
||||||
|
|
||||||
if ( ! $customer) {
|
if ( ! $customer) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user