PayPal Smart Button Integration Values Returned onApprove actions.order.capture()
GrizzT
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jan-18-2021
08:27 AM
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....
Labels:
- Labels:
-
PayPal HTML Buttons
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.
Related Content
- Is it possible to make payments in RON (Romanian Leu) through PayPal? in REST APIs
- p is not a function error using the example downloaded from Paypal in SDKs
- How to enable on-demand / recurring payments to existing PayPal checkout? in SDKs
- iDEAL payments being refunded back to customers in PayPal Payments Standard
- How do you create subscriptions with PayPal Advanced Checkout? in SDKs