Hi support team,
I am facing a critical issue on the checkout page using the XStore theme on a live client website.
The issue happens specifically after a payment is canceled or fails at the bank’s gateway. When the gateway redirects the customer back to the website’s order-pay page (/checkout/order-pay/XXXX/?pay_for_order=true…) so they can try paying again, the XStore theme seems to clear or lose the session/billing data.
As a result, when the user clicks “Pay” again on this page, WooCommerce triggers the checkout validation hooks and throws multiple red errors stating that billing fields (Email, Address, Country, etc.) are mandatory.
Moreover, please note that the page does not provide any option or input fields for the user to re-enter this missing information. The user is completely trapped on a screen with error messages and no way to fill in the required data.
It seems that the theme fails to preserve or correctly fetch the existing billing data from the created order once the user returns from a failed/canceled payment session.
This is a critical flow issue blocking users from retrying their payments. Please provide a fix or a code snippet to ensure billing data is preserved or bypassed on the order-pay endpoint after a gateway rejection.