-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to complete abandoned/pending purchases #2714
Comments
Should be a great feature for v2.3 |
Blah... more annoying than I thought. Might need a hand with this one. |
Have you looked at how Woo does it yet? |
Yes |
Okay . . . and do you still need a hand? Help me help you. |
Let's hold off on this until #2667 is completed so that we are not refactoring payment creation / updates twice. |
Isn't this partially already covered by several extensions aimed at recovering them? Maybe would be well suited as a feature for those plugins instead. Like the idea to clean up the pending transfers though. Also consider starting down the path with this will likely eventually result in those extensions being merged into core as first comes showing people those transactions next comes reminding them by email since that would be a simple step with this in place as well. |
No, not really. The current extensions generate new purchase records. We want to complete the existing pending record. |
Oh sorry, I was under the assumption from their descriptions that they took abandoned and pending carts and notified users to come back to finish them. |
They do notify them but they just recreate the purchase. On Sun, Jan 18, 2015 at 7:06 PM, Daniel Iser notifications@github.com
|
Ok then ignore my previous statements. |
@pippinsplugins: For now, can I continue pending purchase manually? |
@KingYes yes |
How? |
Oh, sorry, I just reread what you wrote. No, that's not supported yet. |
Okay. |
Not yet. On Mon, Mar 23, 2015 at 9:57 AM, Yakir Sitbon notifications@github.com
|
This is too large of a feature to finish up for 2.4 since we're just a few days away from beta. Punting to 2.5. |
👍 |
The UI/UX is looking and functioning wonderfully for me. I did try to complete a pending purchase through PayPal Standard, though, and everything seems to work fine until I'm sent back to my site. The payment is still pending and all the new UI for completing the purchase is still there. No one else is experiencing this? |
@SDavisMedia that's because PayPal standard requires that IPN pings your store to complete the purchase...and doesn't get a TXN ID until that happens. If you try and complete with a gateway that doesn't require IPN (like stripe) does it work as you expect...or test gateway? |
Definitely works if I complete the recovery purchase with Stripe. |
Thanks @SDavisMedia How we feeling here @easydigitaldownloads/core-devs, those that have tested, thinking we're in a good spot here? |
Thought of something last night we need to support here.
Let's do the following:
|
From a UI/UX perspective, that definitely couldn't hurt anything. If it's possible, I think we should definitely do it. In fact, I'm pretty sure there have been a ton of tickets about it... more so in the past. |
@pippinsplugins I set it so that the cart is emptied when viewing the PayPal purchase confirmation. Clicking the back button, while it will provide the user with the cart they had before, will create a pending payment though, that isn't recoverable... If they Go to paypal, click the back button, and then go to paypal again, they'll have 2 EDD payments, since they didn't enter the recovery process, they just clicked the back button, which in some cases, the browser never even hits the server for, just pings the local storage memory for it. So by allowing the back button, we could create more confusion, I think, as now we hve multiple orders for customers, one pending (or processing, I think is what you were tryign to say?) and one complete if they process it the 2nd time. |
Any reason we couldn't go ahead and set it as in recovery as soon as the customer goes to PayPal? That way if they click back, the payment ID in session is detected? |
We can, however since the browser isn't actually re-polling the server or cookie data, there is a pretty high chance that it won't even re-read the cookie variable. I'll work it up to do that, however it cannot be guaranteed, so we'll have to play with it. |
Ok @pippinsplugins fixed that up. It seems to work fine in Chrome at least with the tests I've done. As long as we're aware it's something that the browser 'might' not respect, I think we're ok, but it should respect it as long as the browsers are following normal specs. |
@cklosowski just did some testing on it. Worked beautifully for me and took care of the exact problem that originally triggered us creating this issue: multiple pending payments for a single order due to customers clicking the back button. 💯 |
Tested and working perfectly fine on my end too 👍 |
Complete abandoned and pending payments #2714
Merged into |
💯 |
I'm seeing an error happen on the live site when testing this: URL: https://easydigitaldownloads.com/checkout/?edd_action=recover_payment&payment_id=914927 Error log (incomplete for unknown reason): #1 /wordpress-4.7.2/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array) |
Looks like it's a left over // Empty out the cart.
EDD()->cart->empty(); That method was changed to |
Yep, fixed. |
👍 |
Users should be able to complete abandoned/pending purchases on subsequent visits. In order to facilitate this, a status of 'processing' should be added which will be used by eChecks instead of the 'pending' status used now. This will allow pending purchases to be completed without risking affecting eCheck purchases which are pending processing.
@pippinsplugins has indicated that WooCommerce does this well and we should take inspiration from them.
The text was updated successfully, but these errors were encountered: