How to calculate paypal fees, 2.9% +0.30 doesn't work for some cases variable FEEAMT in checkout met
- by dev-cu
Hello to everyone, thanks for reading this.
I am implementing paypal checkout in my website it is working but i want to make a simple fees calculator for paypal in order to help the user, i went to paypal and they said their fees amount is 2.9% +0.30 fixed, but it is not working for some cases, for example: deposit $1.34
2.9 % = $0.04 rounded + $0.30 = $0.34, so i should get $1 credited but paypal send in its response in the field FEEAMT which indicate the "PayPal fee amount charged for the transaction" 0.35,
what i am doing wrong?
Thanks in advance.