Skip to content

Commit ebcfbaa

Browse files
authored
Upgrade/react bt sdk version (#636)
* Upgraded Braintree SDK version to 3.117.0 in the React SDK. Short-term fix
1 parent c2639e0 commit ebcfbaa

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/afraid-eyes-impress.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@paypal/react-paypal-js": patch
3+
---
4+
5+
WHAT: Temporary fix for Braintree SDK versioning in React JS SDK. BT SDK version has been upgraded to latest version statically in the React SDK.
6+
7+
WHY: The BT SDK version is statically typed to an old version in our React SDK. As a short-term fix, we need to upgrade this version to the latest statically.

packages/react-paypal-js/src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const LOAD_SCRIPT_ERROR = "Failed to load the PayPal JS SDK script.";
2121
export const EMPTY_BRAINTREE_AUTHORIZATION_ERROR_MESSAGE =
2222
"Invalid authorization data. Use dataClientToken or dataUserIdToken to authorize.";
2323

24-
const braintreeVersion = "3.84.0";
24+
const braintreeVersion = "3.117.0";
2525
export const BRAINTREE_SOURCE = `https://js.braintreegateway.com/web/${braintreeVersion}/js/client.min.js`;
2626
export const BRAINTREE_PAYPAL_CHECKOUT_SOURCE = `https://js.braintreegateway.com/web/${braintreeVersion}/js/paypal-checkout.min.js`;
2727

0 commit comments

Comments
 (0)