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.
- Platform Marketplace integration approval in Sandbox Environment
- Assistance Required: Locating Existing APP ID for Adaptive Payments in PayPal Business Account in NVP/SOAP APIs
- PAYER_ACTION_REQUIRED returned for Capture intent when calling v2 checkout orders in Sandbox Environment
- API TRANSACTION_REFUSED in Sandbox when Capturing Payment in REST APIs
- When clicking on a payment button generates error: Unexpected token ... in PayPal Payments Standard