From 7235d1813d512f32efae5b3105f6e50b737ad5f8 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Tue, 1 Feb 2022 11:04:58 +0000 Subject: [PATCH] Update totals and payment explicitly in current (non-split) checkout --- app/controllers/checkout_controller.rb | 3 +++ 1 file changed, 3 insertions(+) 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?