Successful Payment Response Not Containing Paid Amount
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
PayPal Partner and Certified Developer - Kudos are Greatly Appreciated!
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Can't pay via PWA on Android with 3rd party cookies blocked. Sign in loop in SDKs
- Authorization failed due to insufficient permissions in REST APIs
- API approved order not forwarding to PayPal in Sandbox Environment
- Paypal NVP/SOAP API - Pay in 4 instalment payments in NVP/SOAP APIs
- Cannot forward buyer to url after purchase in PayPal Payments Standard