Open AashikP opened 2 years ago
May be related: https://github.com/Automattic/woocommerce-payments/issues/3269
I am a store owner experiencing this issue and want to point out one side effect of this bug. I have recurring "test" orders happening every day and every week which I cannot cancel. Even though these orders are not charging anyone money (4242 credit card), they make accounting very difficult as they have to be manually filtered out from real transactions. I paid for WC's Xero accounting sync plugin which was creating invoices for all these test transactions in my accounting software, and had to manually remove them there as well (fun fact, there is no way to bulk delete invoices in Xero). So this is not just an annoyance that can be ignored.
Hey @AashikP Based on your suggestion and linked issue, the most convenient way (by my opinion) is to update docs and propose solution mentioned in linked issue. What do you think about that?
Based on your suggestion and linked issue, the most convenient way (by my opinion) is to update docs and propose solution mentioned in linked issue. What do you think about that?
Sounds like a plan! Reaching out internally regarding those updates to the document.
Hello @AashikP, I am doing triage for this issue.
Reaching out internally regarding those updates to the document.
Would you mind leaving the internal link(s) here? And is there anything that WCPay developers can help?
Hello @htdat, thank you for the ping. It looks like this was not picked up post the ping here: p1644381451810639-slack-CGGCLBN58
post the ping here: p1644381451810639-slack-CGGCLBN58
Based on this convo, I continue working on this issue.
@Automattic/helix - can you have a look at this issue? Do you think that we can catch up this error, and handle them gracefully OR give a better error message?
Eventually, we may still want to add a document or a new section in an existing document to explain about this. That would reduce support requests to our HEs.
Thanks for the heads up @htdat – will take a look and see what we can do about this. Hopefully we can document a workaround / fix for this issue and maybe #1453 and #3269 as well.
Describe the bug
It seems what happens is when there is a Sub created under WC Pay's Test mode and canceled after it is flipped to Live, the
wcpay_track_new_order
action continues to fire off, even if the action fails.To Reproduce
Pending Cancellation
, butwcpay_track_new_order
is still presentWhen it is time for renewal, the default subscription end scheduled action runs, along with
wcpay_track_new_order
which fails:This generates new orders which should not be generated, and prevents canceling the Subscription itself since it generates this error:
Also note that the renewal orders keep coming in, even though they fail with this error:
action failed via WP Cron: Error: Unable to fetch payment method details from the provided payment_method_id.
Expected behavior
Either ensure no renewal orders are created post-cancellation or make it clear to the customer in the docs about what will happen to the subscriptions that are not completely canceled / that are in
pending cancellation
state.Desktop (please complete the following information):
Any
Smartphone (please complete the following information):
Any
Additional context
Slack discussion : p1642095259178500-slack-C7U3Y3VMY
Customer Reports : 4669003-zen