cancel
Showing results for 
Search instead for 
Did you mean: 

Successful Payment Response Not Containing Paid Amount

New Community Member

Successful Payment Response Not Containing Paid Amount

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?

1 REPLY 1
Highlighted
Frequent Contributor

Re: Successful Payment Response Not Containing Paid Amount

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!