The reply by nickbeat above seems correct, to use currency_code Here is my code ... I've left in lines you don't need like the style, just for interest paypal.Buttons({
style: {
shape: 'pill',
label: 'checkout',
},
createOrder: function (data, actions) {
return actions.order.create({
purchase_units: [{
amount: {
value: $('#idTotal').text().replace(",", ""),
currency_code: 'AUD'
},
description : 'some text here', // max 127
invoice_id: 'invoice number here' // max 127
}]
});
},
onShippingChange: function (data, actions) {
// etc . It all seems to match what the OP and nick said. But I have not tried any currency other than AUD. Note that without that, it defaulted to USD if I recall correctly.
... View more