cancel
Showing results for 
Search instead for 
Did you mean: 

PayPal.Api.Payment, where is the payer currency?

Contributor

PayPal.Api.Payment, where is the payer currency?

This is part of the Payment executed object from the PayPal API.

 

{
"id": "PAYID-LPWD*************130",
"intent": "sale",
"payer": {
"payment_method": "paypal",
"status": "VERIFIED",
"payer_info": {
"email": "**********@gmail.com",
"first_name": "*****",
"middle_name": "*****",
"last_name": "*****",
"payer_id": "*****",
"country_code": "PH",
"shipping_address": {
"recipient_name": "*****",
"line1": "***** *****. *****",
"city": "Bacolod City",
"country_code": "PH",
"postal_code": "6100",
"state": "Negros Occidental"
}
}
},
"cart": "*****",
"transactions": [
{
"related_resources": [
{
"sale": {
"id": "*****",
"amount": {
"currency": "EUR",
"total": "25.00",
"details": {
"subtotal": "25.00",
"shipping": "0.00",
"handling_fee": "0.00",
"shipping_discount": "0.00",
"insurance": "0.00"
}
},
"payment_mode": "INSTANT_TRANSFER",
"state": "completed",
"protection_eligibility": "ELIGIBLE",
"protection_eligibility_type": "ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE",
"transaction_fee": {
"currency": "EUR",
"value": "1.70"
},
"receivable_amount": {
"currency": "EUR",
"value": "25.00"
},
"exchange_rate": "0.85008",
"parent_payment": "PAYID-*****",
"create_time": "9999-12-31T15:17:47Z",
"update_time": "9999-12-31T15:17:47Z"
}
}
]
}
]
}
 
I obfuscated sensible data but youy can clearly see the payer is in Philippines (confirmed also by email).
He payed 25 EUR.
The transaction fee is 1.70 EUR.
 
I can see an applied exchange rate of 0.85008.
I suppose he didn't pay with EUR |? otherwise why an exchange rate?
 
WHAT IS THE PAYER CURRENCY?