Reset (un)captured order - Smart Button
jnasoy
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jul-09-2019
04:15 AM
Hi everyone,
I am implementing a smart button and I am showing a modal confirmation before I capture the order. The modal has 2 buttons, "Cancel" and "Confirm". When the user clicks "Confirm" button, that is the time I capture the order and when the user clicks "Cancel", the modal will close and no capture will happen. The issue is the captured order gets doubled when the user canceled the transaction and click the PayPal button again and confirm the transaction this time. Is there a way to reset or destroy the created order when the user clicks the "Cancel" button?
Attached is the sample code block
Labels:
- Labels:
-
Payflow Pro
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
- Need help to integrate PayPal Checkout Advanced (PPCP) with WooCommerce in PayPal Upgrade Community
- How to integrate paypal smart buttons on cart page? in REST APIs
- How to connect the credit card and debit card button on a shopify store. in PayPal Payments Standard
- PayPal Buttons in PayPal Payments Standard
- PayPal buttons kenya in PayPal Payments Standard