cancel
Showing results for 
Search instead for 
Did you mean: 

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

Options
GrizzT
Contributor
Posted on

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.... 

 

 

 

 

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.