How can I trigger capture() error after onAprrove to test ?
donguyencong
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Apr-08-2019
08:55 AM
Hi guys, I saw on the demo:
// Finalize the transaction
onApprove: function(data, actions) {
return actions.order.capture().then(function(details) {
// Show a success message to the buyer
alert('Transaction completed by ' + details.payer.name.given_name + '!');
});
}
How can I force actions.order.capture() to return an error instead of success?
Thank you very much!
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
- PayPal REST API - how to get information (webhooks?) on manual money transfers in NVP/SOAP APIs
- Is there a webhook that triggers when fund is released? in PayPal Reporting
- Is the standard Javascript button secure enough or do I need a server side check? in PayPal Payments Standard
- Zapier, Paypal IPN and subscription payments in PayPal Payments Standard
- PayPalInvoice Nuget integration with C# Desktop Client / ErrorID 520002 in REST APIs