Successful Payment Response Not Containing Paid Amount

amrowe2018
New Community Member

When I run transactions in the sandbox and get a response it only contains 

-cancelled: boolean

-paid: boolean

-payerID: string

-paymentID: string

-paymentToken: string

-returnURL: string

 

I need to get the total amount the customer paid! I am using react and all of the communication with paypal is run on the front-end. Is there some sort of parameter I can pass along with the payment request to ensure I get the total paid returned?

Login to Me Too
1 REPLY 1

angelleye
Advisor
Advisor

I'm a little confused.  If you're the one generating the API request, which includes the amount, why would you need it in the response?  You already have that data available in your app...which you used to generate the request.

 

If you're not getting what you need in the API response, take a look at Webhooks.  It would be separate from your app flow, but you can automate processes and it will include the amount.

 

 

Angell EYE - www.angelleye.com
PayPal Partner and Certified Developer - Kudos are Greatly Appreciated!
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.