mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-25 05:45:15 +00:00
Update totals and payment explicitly in current (non-split) checkout
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user