From b024f99fbdce6a075e7aaaabdd044a7805a6e2de Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Fri, 7 Oct 2016 08:22:19 +0300 Subject: [PATCH] Bug fix for Braintree client link --- app/Models/AccountGatewayToken.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/AccountGatewayToken.php b/app/Models/AccountGatewayToken.php index b25099e2f30e..6774db0b51d2 100644 --- a/app/Models/AccountGatewayToken.php +++ b/app/Models/AccountGatewayToken.php @@ -91,8 +91,8 @@ class AccountGatewayToken extends Eloquent if ($accountGateway->gateway_id == GATEWAY_STRIPE) { return "https://dashboard.stripe.com/customers/{$this->token}"; } elseif ($accountGateway->gateway_id == GATEWAY_BRAINTREE) { - $merchantId = $accountGateway->getConfig()->merchantId; - $testMode = $accountGateway->getConfig()->testMode; + $merchantId = $accountGateway->getConfigField('merchantId'); + $testMode = $accountGateway->getConfigField('testMode'); return $testMode ? "https://sandbox.braintreegateway.com/merchants/{$merchantId}/customers/{$this->token}" : "https://www.braintreegateway.com/merchants/{$merchantId}/customers/{$this->token}"; } else { return false;