Class: Spree::AdyenRedirectController
- Inherits:
-
StoreController
- Object
- StoreController
- Spree::AdyenRedirectController
- Defined in:
- app/controllers/spree/adyen_redirect_controller.rb
Instance Method Summary collapse
-
#confirm ⇒ Object
This is the entry point after an Adyen HPP payment is completed.
Instance Method Details
#confirm ⇒ Object
This is the entry point after an Adyen HPP payment is completed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/spree/adyen_redirect_controller.rb', line 9 def confirm # Reload order as it might have changed since previously loading it # from an auth notification coming in at the same time. # This and the notification processing need to have a lock on the order # as they both decide what to do based on whether or not the order is # complete. @order.with_lock do if @order.complete? confirm_order_already_completed else confirm_order_incomplete end end end |