• Resolved markwill

    (@markwill)


    I have a very serious issue (but an intermittent one, which is making it very difficult to repro/investigate). If you have access to the Advanced WooCommerce Facebook group, it’s discussed in detail here.

    A summary of the problem is that some orders are generating a front end error message on the checkout page, telling the visitor to try again – even though they have already been successfully billed (through Stripe). Many customers try a few times, which means they are repeatedly billed. A bad situation!

    I am not necessarily asking for this to be resolved here/now (I am sure that will require more detail, though the Facebook post has much of that). But I am reasonably sure this is some sort of timeout on the checkout process, before the thank you page is displayed (but after billing).

    So my questions are…

    • What timeouts are at play for the OVERALL checkout process and where can I configure them?
    • What event is logged and where can I see this when checkout times out (nothing is reported in debug.log, etc that sheds light on this)?
    • Where can I get a full list of all the hooks at play for a normal order, including the likely order they are called.

    Also, as part of my investigation, I am hook into woocommerce_checkout_order_processed(). My expectation is that this would be called towards the end of checkout. But, to my confusion, it is being called (at least given the timestamps I see) before events like:

    woocommerce_order_status_changed()

    woocommerce_payment_complete()

    woocommerce_thankyou()

    And it’s not even close. The other events are timestamped generally in the same second, or close. But woocommerce_checkout_order_processed() has a timestamp often 5 seconds or more before the others.

    I would greatly appreciate any help.

    • This topic was modified 2 years, 5 months ago by markwill.
Viewing 1 replies (of 1 total)
  • Saif

    (@babylon1999)

    Hello @markwill,

    Thank you for reaching out!

    What timeouts are at play for the OVERALL checkout process and where can I configure them?

    I’m not aware of any intentional sleeping or timeout within the checkout process unless your payment method is waiting for a response, which depends on the plugin you’re using.

    What event is logged and where can I see this when checkout times out (nothing is reported in debug.log, etc that sheds light on this)? Where can I get a full list of all the hooks at play for a normal order, including the likely order they are called.

    Both of these can be found via Query Monitor, however, I think you’ll need to land on the “order received” page to see the called functions.


    Link to image: https://d.pr/i/KXhLG6

    Just to confirm, have you tried checking if anything is getting in the way of the order email generation process? It’s mostly the case when the error is vague.

    I’m not a member of the Facebook group you shared so I don’t know what have you tried already. 😅

    Look forward to hearing back from you.

Viewing 1 replies (of 1 total)

The topic ‘Urgent issue with repeat billing’ is closed to new replies.