Currency setting

stephenmccrea
Contributor
Contributor

I am trying to set the amount for the purchase to 20.00 CAD but the PayPal portal changes it to 20.00 USD and converts the 20 to CAD (~27). I want the primary selling price to be in CAD and the portal can convert to the buyer's currency as necessary. Here is a snippet from my basic integration. I've tried different field names like currency_code, currency_id and currency. Please help.

 

paypal.Buttons(
{
createOrder: function(data, actions)
{
// Set up the transaction
return actions.order.create(
{
purchase_units:
[
{
reference_id: document.getElementById("<%= HiddenLicenseID.ClientID %>").value,
amount:
{
currency: "CAD",
value: document.getElementById("<%= HiddenPrice.ClientID %>").value,
}
}
]
});
},
onApprove: function (data, actions) {

Login to Me Too
2 REPLIES 2

stephenmccrea
Contributor
Contributor

I gave up on this and switched to V2 rest api.

Login to Me Too

italyXworld
Contributor
Contributor

Hi, did you happen to solve it? i have your same problem...

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.