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.
- Using Paypal Smart Buttons for checkout sometimes fails with Debit/ Credit Cards Form in Braintree Client-side Integration (JS, iOS, Android SDKs)
- Sandbox account not generating IPNs in Sandbox Environment
- SetExpressCheckout 10003 error with ITEMCATEGORY=Digital in NVP/SOAP APIs
- Issue with Empty store_info in Response Using /v1/reporting/transactions on Sandbox API in REST APIs
- Add Others data in SDKs