Closed james-allan closed 1 week ago
❓ Is scheduling an action in the following cases something we'd like to avoid? Using authorize and capture. Using a 3DS card and authorizing the transaction.
Yeah good question. Can you explain how you tested this with Cards? Because cards respond instantly I wasn't able to simulate a situation where the webhook was skipped.
Can you explain how you tested this with Cards?
Using a non-saved 3DS card scheduled the action for me. This is what I did:
4000002760003184
and place the orderwp-admin/tools.php?page=action-scheduler&s=wc_stripe_deferred_webhook&paged=1
wc_stripe_deferred_webhook
Using authorize and capture
Btw, scratch this one. I was trying again with authorize and capture and wasn't able to replicate the behavior here.
Are these issues expected to be solved in the next plugin update? When can that be expected?
Are these issues expected to be solved in the next plugin update
Yes, this should be fixed in the next version of WooCommerce Stripe which is scheduled for July 11.
Fixes #3192
Changes proposed in this Pull Request:
We've had reports from a number of merchants experiencing an issue where orders are being left as pending-payment. After investigating, it turns out the issue is that successful webhooks are being received but are being skipped with the Stripe log entry:
I haven't been able to fully understand what causes this myself, however, what we do know is that this impacts payment methods like P24, iDEAL etc where the customer is redirected offsite and redirected back to the site where we'd process the payment via args in redirect URL.
I suspect what is happening is:
This PR fixes this by making sure we process the successful webhook, but we wait at least 2 minutes to allow a potential redirect to occur. Given the successful payment webhook has been received, 2 minutes should be more than enough time for the redirect to occur if it's going to. We could adjust this if we want to give more or less time.
Testing instructions
Reproducing the bug
Stripe UPE waiting for redirect. The status for order 7674 might need manual adjustment.
message.Confirm the fix
Stripe UPE waiting for redirect. Scheduled deferred webhook processing. The status for order 7675 might need manual adjustment.
wc_stripe_deferred_webhook
.changelog.txt
andreadme.txt
(or does not apply)Post merge