How to get paypal fees amount after executing a Payment

fhassani
Contributor
Contributor

Hi,

 

I am integrating paypal Java API and I would like to get fees and net amount. What is the API call to get these amounts?

 

Thank you for your help!

Login to Me Too
3 REPLIES 3

MTS_Chiranjeevi
Moderator
Moderator

Hi @fhassani,

 

Thank you for contacting PayPal community.

 

Our sincere apologies for the inconvenience caused.

 

Yes, you can get the transaction fee details by implementing Express Checkout via NVP/SOAP:

 

Please use the filed "PAYMENTINFO_n_FEEAMT" which will be returned by DoExpressCheckoutPayment API Operation.

 

PAYMENTINFO_n_FEEAMT

PayPal fee amount charged for the transaction. You can specify up to ten payments, where n is a digit from 0 to 9, inclusive.

Character length and limitations:

Value is typically a positive number that cannot exceed 10,000.00 USD or the per transaction limit for the currency. It includes no currency symbol. Most currencies require two decimal places. The decimal separator must be a period (.), and the optional thousands separator must be a comma (,). Some currencies do not allow decimals. For details, see the currency codes page.

 

 

Detailed integration guide link for reference.

 

Thank you for understanding and patience.

 

Sincerely,

Chiranjeevi

PayPal, Inc.

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

fhassani
Contributor
Contributor

Hi  @Chiranjeevi_L, 

Thank you for your quick answer.

The link you sent me seems to be deprecated.

I am using the REST API in Java, so I creation a Payment object then I approve it then I execute the Payment. I can get a Transaction object from the Payment object but none of them contains the fees amount.

Is there a possibility to use the REST API to get the fees amount?

Thank you!

Fouad

Login to Me Too

MTS_Chiranjeevi
Moderator
Moderator

Hi @fhassani,

 

I apologize for any inconvenience.

 

You can still integrate Express Checkout via NVP/SOAP, deprecated means that there will be no further enhancement.

 

Yes, please use transaction_fee value to get PayPal fee details.

 

Screenshot_20200616-164030__01.jpg

 

I hope that above information is helpful. 

 

Thank you for understanding and patience.

 

Sincerely,
Chiranjeevi

PayPal, Inc.


If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

 
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.