What JSON is returned to Browser with the onApprove: function(data, actions)
solucionmike
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Aug-13-2023
04:32 PM
Hi,
I am looking for a complete list of JSON data returned to the Browser with the onApprove function:
onApprove: function(data, actions) {
// This function captures the funds from the transaction.
return actions.order.capture().then(function(details) {
// This function shows a transaction success message to your buyer.
So far I have only found these 2 mentioned in the documentation:
details.payer.name.given_name
data.orderID
I would like to know things like authorization, Payer Email and Amount etc.
Thanks
Mike
// alert('Transaction completed by ' + details.payer.name.given_name);
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
- Auto Return feature for digital products without using woocommerce? in PayPal Payments Standard
- Add parameters to custom auto return url? in PayPal Payments Standard
- PERMISSION_DENIED error for checkout/orders/{order_id} endpoint in REST APIs
- Why does the client when makeing and order return a payment id that does not start with PAYID. in REST APIs
- Please return to the merchant and choose another way to pay in PayPal Reporting