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:
- The classic API support credit card payment for BRL Currency ?
- Is there any workaroud using the REST Api ?
- If paypal definitely don't support it. Then why ?