From 35b1379f61a0e5d63e93255cbe3d771a437e5808 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 17 Mar 2015 15:09:28 +0200 Subject: [PATCH] Fixed bug where stripe token billing was incorrectly shown --- app/models/Account.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/Account.php b/app/models/Account.php index bbe026266a64..b988a5e65b39 100755 --- a/app/models/Account.php +++ b/app/models/Account.php @@ -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; }