mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 15:34:30 -04:00
Fixed bug where stripe token billing was incorrectly shown
This commit is contained in:
parent
392fd537cb
commit
35b1379f61
@ -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…
x
Reference in New Issue
Block a user