onApprove callback - Cannot read property 'captures' of undefined

robo0405
Contributor
Contributor

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
Login to Me Too
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.