Skip to content

Commit

Permalink
Merge pull request #97 from Kulgar/patch-2
Browse files Browse the repository at this point in the history
Update mollie_controller.rb to set order_completed to true
  • Loading branch information
Oldharlem authored Jul 12, 2021
2 parents de26f4a + c806e40 commit 48af19a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/spree/mollie_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 48af19a

Please sign in to comment.