eafc87b453
* Save the session early before proceeding with order payment. As part of the checkout process an order is created and the order id is stored in a session variable right before requesting payment processing to the appropriate payment gateway. Thus if the payment fails and the user submits the order again, the order id will be picked from the session so the existing order can be retrieved and updated. However if the payment process hangs (instead of returning an error) and the request never finishes the session data will never actually be sorted, and the next time the user submits the order a duplicate of the first order will be created. This commit simply does WC()->session->save_data() after the WC()->session->set that stores the order id, so that the session is effectively updated even if the request hangs. * Add changelog file |
||
---|---|---|
.. | ||
woo-ai | ||
woocommerce | ||
woocommerce-admin | ||
woocommerce-beta-tester | ||
woocommerce-docs |