mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-12 11:14:36 -04:00
Bug fix for Braintree client link
This commit is contained in:
parent
c8eace705d
commit
b024f99fbd
@ -91,8 +91,8 @@ class AccountGatewayToken extends Eloquent
|
|||||||
if ($accountGateway->gateway_id == GATEWAY_STRIPE) {
|
if ($accountGateway->gateway_id == GATEWAY_STRIPE) {
|
||||||
return "https://dashboard.stripe.com/customers/{$this->token}";
|
return "https://dashboard.stripe.com/customers/{$this->token}";
|
||||||
} elseif ($accountGateway->gateway_id == GATEWAY_BRAINTREE) {
|
} elseif ($accountGateway->gateway_id == GATEWAY_BRAINTREE) {
|
||||||
$merchantId = $accountGateway->getConfig()->merchantId;
|
$merchantId = $accountGateway->getConfigField('merchantId');
|
||||||
$testMode = $accountGateway->getConfig()->testMode;
|
$testMode = $accountGateway->getConfigField('testMode');
|
||||||
return $testMode ? "https://sandbox.braintreegateway.com/merchants/{$merchantId}/customers/{$this->token}" : "https://www.braintreegateway.com/merchants/{$merchantId}/customers/{$this->token}";
|
return $testMode ? "https://sandbox.braintreegateway.com/merchants/{$merchantId}/customers/{$this->token}" : "https://www.braintreegateway.com/merchants/{$merchantId}/customers/{$this->token}";
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user