i have this code <script src="https://www.paypal.com/sdk/js?client-id=MY_CLIENT_ID&intent=authorize¤cy=EUR"></script> <script> paypal.Buttons({ payment: function (data, actions) { return actions.payment.create({ payment: { transactions: [ { amount: { total: '1.00', currency: 'EUR' } } ] } }); }, onAuthorize: function (data, actions){ // Get the payment details return actions.payment.get() .then(function (paymentDetails) { // Show a confirmation using the details from paymentDetails // Then listen for a click on your confirm button document.querySelector('#confirm-button') .addEventListener('click', function () { console.log("Payment authorized") }); }); } }).render('#paypal-button-container'); }); </script> I try to pass to my create payment request a EUR currency code and I get this Javascript error: Unexpected currency: USD passed to order.create. First, why "order.create"? Second, why "USD" if i passed to it "EUR" Could anyone help me with this issue? Thank you.
... View more