1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 20:52:56 +01:00

Check for payment driver

This commit is contained in:
Hillel Coren 2016-07-19 20:15:03 +03:00
parent 96b4b19509
commit a0817d8de3

View File

@ -73,6 +73,11 @@ class PaymentService extends BaseService
}
$paymentDriver = $account->paymentDriver($invitation, GATEWAY_TYPE_TOKEN);
if ( ! $paymentDriver) {
return false;
}
$customer = $paymentDriver->customer();
if ( ! $customer) {