Reputation: 1081
I'm developing a project to integrate PayPal. The project needs paypal method and credit card method. Paypal payment is working perfectly but, the credit card payment isn't.
When I try to create a credit card payment the remote server returns an error:
{"name":"VALIDATION_ERROR","details":[{"field":"transactions[0].amount.currency","issue":"Value is not supported at this time"}],"message":"Invalid request - see details","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#VALIDATION_ERROR","debug_id":"2c57c4279a510"}
If I change the currency to EUR or USD it works.
Amount amount = new Amount();
amount.total = "15.23";
//amount.currency = "EUR";
//amount.currency = "USD";
amount.currency = "BRL";
//amount.currency = PayPalManager.Currency;
amount.details = amountDetails;
After some research I found at PayPal Currencies Code that
(Brazilian Real) This currency is supported as a payment currency and a currency balance for in-country PayPal accounts only.
Question:
Upvotes: 0
Views: 1335
Reputation: 3677
Yes "BRL" is not supported yet for Credit card payments . You can check the credit card currency support for REST API at below link and it supports only USD/GBP/JPY/EUR/CAD at the moment
For Classic API too , BRL is not supported as a credit card currency, check the below link :
https://developer.paypal.com/webapps/developer/docs/classic/api/currency_codes/
Upvotes: 1