diff --git a/app/Services/PaymentService.php b/app/Services/PaymentService.php index 4c58f62f4624..89a2e0fc5b32 100644 --- a/app/Services/PaymentService.php +++ b/app/Services/PaymentService.php @@ -58,6 +58,11 @@ class PaymentService extends BaseService } $paymentDriver = $account->paymentDriver($invitation, GATEWAY_TYPE_TOKEN); + + if ( ! $paymentDriver) { + return false; + } + $customer = $paymentDriver->customer(); if ( ! $customer) {