diff --git a/app/Models/AccountGatewayToken.php b/app/Models/AccountGatewayToken.php index b7fc767112fb..b25099e2f30e 100644 --- a/app/Models/AccountGatewayToken.php +++ b/app/Models/AccountGatewayToken.php @@ -52,7 +52,11 @@ class AccountGatewayToken extends Eloquent */ public function autoBillLater() { - return $this->default_payment_method->requiresDelayedAutoBill(); + if ($this->default_payment_method) { + return $this->default_payment_method->requiresDelayedAutoBill(); + } + + return false; } /**