Check for payment driver

This commit is contained in:
Hillel Coren 2016-07-19 20:15:18 +03:00
parent 41f5e4ed9a
commit 5be6abfa93

View File

@ -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) {