onApprove callback - Cannot read property 'captures' of undefined
robo0405
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Feb-14-2020
06:41 AM
Trying to pull data back from approved transactions in my sandbox account, but when I try to pull the value amount of the transaction I get the following error
Uncaught TypeError: Cannot read property 'captures' of undefined
This is what I am using to pull the data
details.purchase_units.payments.captures.amount.value
0 REPLIES 0
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Change the button from Sandbox to Production in REST APIs
- Payment not automatically being captured, funds not transferred in Sandbox Environment
- Redirect onApprove of Subscription in Sandbox Environment
- createOrder not being directed to OnApprove actions.redirect in PayPal Payments Standard
- Transaction with PP button does not show product description in PayPal Payments Standard