-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Unexpected currency: JPY passed to order.create. Please ensure you are passing /sdk/js?currency=JPY in the paypal script tag. #4
Comments
Hi, Do you have a script tag anywhere in your html pointing to paypal's api or a tag that looks like this |
If you like |
Hello, thanks for the component and sorry for bad English. I did not set the mentioned script but got the same error while passing different currencies. At first, I've tried to pass the currency through the options and it doesn't work, then I passed by currency prop listed in IPayPalButtonProps and it worked for while until suddenly stop. My code:
Error message: Stack
|
In case someone has the same issue, you need to pass also the currency in the options:
|
Hi, Good day. I've followed your examples, but i seem to stumble across an error whenever i try to change the currency. We're using React 15.6.2 with Redux 4.4.9.
Error: Unexpected currency: JPY passed to order.create. Please ensure you are passing /sdk/js?currency=JPY in the paypal script tag.
Here's my code for our page.
Even then if i try to place it inside the
<PayPalButton>
, it returns with the same error.The text was updated successfully, but these errors were encountered: