diff --git a/app/controllers/spree/mollie_controller.rb b/app/controllers/spree/mollie_controller.rb index ecf88d4..ce817bc 100644 --- a/app/controllers/spree/mollie_controller.rb +++ b/app/controllers/spree/mollie_controller.rb @@ -14,6 +14,8 @@ def validate_payment MollieLogger.debug("Redirect URL visited for order #{params[:order_number]}") order = order.reload + + flash['order_completed'] = order.completed? # Order is paid for or authorized (e.g. Klarna Pay Later) redirect_to order.paid? || payment.pending? ? order_path(order) : checkout_state_path(:payment)