AUD currency not working in sandbox environment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
If i specify to use USD currency in my HTML, the sandbox form works. However, if i switch to AUD, it does not.
eg:
<input type="hidden" name="currency_code" value="USD"> works
<input type="hidden" name="currency_code" value="AUD"> does not
Any suggestions why it would not work?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you post the whole form and the sandbox account details (PM me if you'd prefer) please.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, AUD currency is not working for me on sandbox environment eventhough i sign up for paypal/au buisness account. Can you pls help on this.
{
"name": "VALIDATION_ERROR",
"details": [
{
"field": "transactions",
"issue": "Item currency codes should be same as the transaction currency code in all buckets"
}
],
"message": "Invalid request - see details",
"information_link": "https://developer.paypal.com/docs/api/payments/#errors",
"debug_id": "be5698ab803ad"
}
Thanks
Pradeep J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Actually I got it from the logs, the issue is that you have the currency set in the item list as USD and AUD in the overall amounts, you need to check the USD in the item details to AUD.
{
"intent":"sale",
"payer":{
"payment_method":"paypal",
"payment_method_type":"PAYPAL",
"extended_payment_method_type":"PAYPAL"
},
"transactions":[
{
"amount":{
"total":"100",
"currency":"AUD",
"details":{
"subtotal":"75",
"tax":"15",
"shipping":"10",
},
},
"description":"Transaction description.",
"invoice_number":"209882",
"related_resources":[
],
"item_list":{
"items":[
{
"name":"Item Name",
"sku":"sku",
"price":"15",
"currency":"USD",
"quantity":"5",
}
],
}
}
],
"redirect_urls":{
"return_url":"http://localhost/xxxxxxxxxxxxxx.",
"cancel_url":"http://localhost/xxxxxxxxxxxxxx
},
}
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Sandbox testing has beaten me !! in Sandbox Environment
- Issue with Empty store_info in Response Using /v1/reporting/transactions on Sandbox API in REST APIs
- does api-m.sandbox.paypal.com or the real api endpoint support IPv6? in REST APIs
- Change the button from Sandbox to Production in REST APIs
- Enable Pay later without credit in SDKs