Fixed bug where stripe token billing was incorrectly shown
This commit is contained in:
parent
392fd537cb
commit
35b1379f61
1 changed files with 4 additions and 0 deletions
|
|
@ -352,6 +352,10 @@ class Account extends Eloquent
|
|||
|
||||
public function showTokenCheckbox()
|
||||
{
|
||||
if (!$this->isGatewayConfigured(GATEWAY_STRIPE)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->token_billing_type_id == TOKEN_BILLING_OPT_IN
|
||||
|| $this->token_billing_type_id == TOKEN_BILLING_OPT_OUT;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue