cancel
Showing results for 
Search instead for 
Did you mean: 

How to get paypal fees amount after executing a Payment

Options
fhassani
Contributor
Posted on

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!

3 REPLIES 3

How to get paypal fees amount after executing a Payment

Options
Chiranjeevi_L
PayPal Employee

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.

How to get paypal fees amount after executing a Payment

Options
fhassani
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

How to get paypal fees amount after executing a Payment

Options
Chiranjeevi_L
PayPal Employee

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.

 

Haven't Found your Answer?

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