diff --git a/app/controllers/checkout_controller.rb b/app/controllers/checkout_controller.rb index b92fe71b4b..56e4942c5e 100644 --- a/app/controllers/checkout_controller.rb +++ b/app/controllers/checkout_controller.rb @@ -96,6 +96,9 @@ class CheckoutController < ::BaseController def checkout_workflow(shipping_method_id) while @order.state != "complete" if @order.state == "payment" + @order.updater.update_totals + @order.updater.update_pending_payment + return if redirect_to_payment_gateway return action_failed if @order.errors.any?