cancel
Showing results for 
Search instead for 
Did you mean: 

Who Me Too'd this topic

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
Who Me Too'd this topic