cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript SDK currency code error

New Community Member

Javascript SDK currency code error

I try to pass to my create order request a EUR currency code and I get this Javascript error:

Expected USD got EUR.Please make sure you are passing EUR to the SDK. Could anyone help me with this issue?

Thank you.

2 REPLIES 2
Member

Re: Javascript SDK currency code error

Try passing currency in your script tag like this
Might be it will help

<script src="https://paypal.com/sdk/js?client-id=YOUR_CLIENT_ID&currency=EUR"></script>

and make sure you pass currency_code whenever you use amount object

New Community Member

Re: Javascript SDK currency code error

Works great!

Thank you very much  tejasm1!