You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since paypal-js version 6.0 BREAKING CHANGE for query parameters, they go from kebab to camel case, ex: client-id => clientId, I receive 400 Bad Request when passed the info to PayPalScriptProvider from react-paypal-js package.
When passing the keys in kebab case to PayPalScriptProvider, it works just fine...
It's pretty clear the integration with React wasn't tested when this breaking change was made in paypal-js.
😕 Current Behavior
I get bad request in the network manager:
// react-paypal-js.js:520
GET https://www.paypal.com/sdk/js?clientId=xxxxxxxxxxxxxxxxxxxx&integrationDate=2021-12-24 net::ERR_ABORTED 400
*I hid the client id on purpose, it's of no consequences here
🤔 Expected Behavior
Passing camel case keys like clientId to PayPalScriptProvider should work.
🔬 Minimal Reproduction
It's pretty straightforward, the React integration was not adjusted after the breaking change from `paypal-js` package. No need for a reproduction.
Is there an existing issue for this?
🐞 Describe the Bug
Since
paypal-js
version6.0
BREAKING CHANGE for query parameters, they go from kebab to camel case, ex: client-id => clientId, I receive 400 Bad Request when passed the info toPayPalScriptProvider
fromreact-paypal-js
package.When passing the keys in kebab case to
PayPalScriptProvider
, it works just fine...It's pretty clear the integration with React wasn't tested when this breaking change was made in
paypal-js
.😕 Current Behavior
I get bad request in the network manager:
*I hid the client id on purpose, it's of no consequences here
🤔 Expected Behavior
Passing camel case keys like
clientId
toPayPalScriptProvider
should work.🔬 Minimal Reproduction
🌍 Environment
Relevant log output
No response
Code of Conduct
➕ Anything else?
No response
The text was updated successfully, but these errors were encountered: