Jaime Yule
Jaime Yule

Reputation: 1081

PayPal REST Api Brazilian BRL Currency

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:

  1. The classic API support credit card payment for BRL Currency ?
  2. Is there any workaroud using the REST Api ?
  3. If paypal definitely don't support it. Then why ?

Upvotes: 0

Views: 1335

Answers (1)

Eshan
Eshan

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

https://developer.paypal.com/webapps/developer/docs/integration/direct/rest_api_payment_country_currency_support/

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

Related Questions