mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Standardise use of #order_completion_reset
This commit is contained in:
@@ -55,8 +55,7 @@ module PaymentGateways
|
||||
@order.process_payments!
|
||||
@order.next
|
||||
if @order.complete?
|
||||
flash.notice = t(:order_processed_successfully)
|
||||
session[:order_id] = nil
|
||||
order_completion_reset(@order)
|
||||
redirect_to completion_route(@order)
|
||||
else
|
||||
redirect_to main_app.checkout_state_path(@order.state)
|
||||
|
||||
Reference in New Issue
Block a user