"details.seller_receivable_breakdown.gross_amount" says it is undefined

bthornic
Contributor
Contributor

Hi,

 

I'm able to get the payer's name and email fine using this code:

onApprove: function(data, actions) {

return actions.order.capture().then(function(details) {

alert(details.payer.name.given_name)
alert(details.payer.email_address)

...

 

However, when I try to get the gross amount of the order using the following, it says it is undefined in the browser:

alert(details.seller_receivable_breakdown.gross_amount)

 

I'm in sandbox mode, btw.

 

Thanks!

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.