Update totals and payment explicitly in current (non-split) checkout

This commit is contained in:
Matt-Yorkley
2022-02-01 11:04:58 +00:00
parent 35392cb117
commit 7235d1813d

View File

@@ -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?