php - PayPal get exchange rate from transaction

904

With the PayPal API we get all our transactions with the API TransactionSearch and GetTransactionDetails. But the transacions are in the currency from the supplier (USD) and not in EUR.

Is there a way to get the exchange rate from the transaction with the PayPal API? I use Fixer.io but the rate is not the same as Paypal's rate.

201

Answer

Solution:

Your transaction request certainly have currency code

Find the code here and replace usd

https://developer.paypal.com/docs/classic/mass-pay/integration-guide/currency_codes/

People are also looking for solutions to the problem: php - Laravel custom CSV exporting

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.