Loading modules/payment/src/PaymentOrderUpdater.php +6 −0 Original line number Diff line number Diff line Loading @@ -92,6 +92,12 @@ class PaymentOrderUpdater implements PaymentOrderUpdaterInterface, DestructableI if (!$previous_total->equals($new_total)) { $order->setTotalPaid($new_total); if ($save_order) { // The order should not be refreshed on save as this service // may run in a queue or webhook where order processors and // conditions will not have access to the user's session. // However, the user's session may be required for the refresh to // function correctly. $order->setRefreshState(OrderInterface::REFRESH_SKIP); $order->save(); } } Loading Loading
modules/payment/src/PaymentOrderUpdater.php +6 −0 Original line number Diff line number Diff line Loading @@ -92,6 +92,12 @@ class PaymentOrderUpdater implements PaymentOrderUpdaterInterface, DestructableI if (!$previous_total->equals($new_total)) { $order->setTotalPaid($new_total); if ($save_order) { // The order should not be refreshed on save as this service // may run in a queue or webhook where order processors and // conditions will not have access to the user's session. // However, the user's session may be required for the refresh to // function correctly. $order->setRefreshState(OrderInterface::REFRESH_SKIP); $order->save(); } } Loading