woocommerce / woocommerce

A customizable, open-source ecommerce platform built on WordPress. Build any commerce solution you can imagine.
https://woocommerce.com
9.42k stars 10.77k forks source link

[Enhancement]: Add Detailed Step Logging for Checkout Process Failures #51387

Open wavvves opened 2 months ago

wavvves commented 2 months ago

Describe the solution you'd like

Introduce more verbose logging for each step in the checkout process. This will help pinpoint exactly where a failure occurs—whether it’s during a hook, before/after order creation, or during payment processing. By logging each step, developers and support teams can quickly identify problematic areas without extensive debugging.

Describe alternatives you've considered

We considered handling all checkout steps in one atomic process, but this could lead to stability issues when a failure occurs. An alternative is to break the process down into smaller, idempotent steps, managed by a state machine. However, this is more complex and would require a broader refactor. Step-by-step logging offers a straightforward and less invasive solution.

Additional context

pca54o-8fk-p2

wavvves commented 2 weeks ago

This is temporarily blocked while gathering more info from WP Cloud ⏳

ralucaStan commented 1 day ago

I'm removing the high priority, but we should still ship it ASAP to start collecting more data.