PayPal Smart Button Integration Values Returned onApprove actions.order.capture()

GrizzT
Contributor
Contributor

Trying to integrate the smart buttons and some values I can get returned after payment and others generate an error so I suspect they are not right.

 

Where is the list of all the variables returned after payment? 

 

onApprove: function(data, actions) {
        return actions.order.capture().then(function(details) {
       alert('Transaction completed by ' + details.payer.name.given_name);

 

Like in the example: details.payer.name.given_name

 

Everything returned in details, like the amount of the payment, fee, etc.... 

 

 

 

 

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.