-
Notifications
You must be signed in to change notification settings - Fork 206
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
Fix double order note issue #3331
Conversation
Nice work @Mayisha! I ran through some tests, however I came across an issue with CashApp and maybe other payment methods too. CARD PAYMENT
3D-SECURE CARD PAYMENT I tested a 3D-Secure card because I thought it had to be processed via the webhook. 3DS cards still work because the order is processed via OTHER PAYMENT METHODS With that in mind I think we need to consider also lifting the lock even if there isn't any charge. ie before we return from |
includes/payment-methods/class-wc-stripe-upe-payment-gateway.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work replicating and sending a PR for the duplicated order notes issue, @Mayisha !
The changes in the code make sense to me. I tested the following scenarios, and they look good.
✅ Double processing doesn’t happen in this branch. I got double notes, emails, and inventory reduction in develop
when paying with Cards and they no longer happen in this branch.
✅ CashPay works as expected. I was able to replicate the issue James mentioned in 57293c5, and CashApp orders now do change to “Processing”.
I tested the following cases that use webhooks:
✅ Authorize and capture later works as expected with Cards, Klarna, and Afterpay
✅ SEPA orders behave as expected, including when using [IBANs](https://docs.stripe.com/payments/sepa-debit/accept-a-payment?web-or-mobile=web&payments-ui-type=stripe-hosted#test-ibans) that simulate delayed transitions
I'm leaving the final approval of this PR to @james-allan since he spotted an issue in the previous review. But things look good on my end 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #2463 #2331
Changes proposed in this Pull Request:
Testing instructions
develop
branch.localhost
, I can not reproduce the issue in localhost)fix/double-processing
.