Fixed bug where stripe token billing was incorrectly shown

This commit is contained in:
Hillel Coren 2015-03-17 15:09:28 +02:00
parent 392fd537cb
commit 35b1379f61

View File

@ -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;
}