diff --git a/app/assets/javascripts/solidus_paypal_braintree/paypal_button.js b/app/assets/javascripts/solidus_paypal_braintree/paypal_button.js index 7ca57ac7..1cf6629c 100644 --- a/app/assets/javascripts/solidus_paypal_braintree/paypal_button.js +++ b/app/assets/javascripts/solidus_paypal_braintree/paypal_button.js @@ -41,6 +41,7 @@ SolidusPaypalBraintree.PaypalButton.prototype.initializeCallback = function() { this._paymentMethodId = this._client.paymentMethodId; this._client.getPaypalInstance().loadPayPalSDK({ + "client-id": this._environment === "sandbox" ? "sb" : null, currency: this._paypalOptions.currency, commit: true, vault: this._paypalOptions.flow == "vault",