Fix for default payment method check
This commit is contained in:
parent
0caa865f7d
commit
9bfe233c9f
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue