cancel
Showing results for 
Search instead for 
Did you mean: 

onApprove callback - Cannot read property 'captures' of undefined

Contributor

onApprove callback - Cannot read property 'captures' of undefined

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