Class: Spree::WalletoneController

Inherits:
StoreController
  • Object
show all
Defined in:
app/controllers/spree/walletone_controller.rb

Instance Method Summary collapse

Instance Method Details

#confirmObject


6
7
8
9
10
11
12
13
14
15
# File 'app/controllers/spree/walletone_controller.rb', line 6

def confirm
  if @callback_order.complete?
    flash.notice = Spree.t(:order_processed_successfully)
    flash[:order_completed] = true
    session[:order_id] = nil
    redirect_to order_path(@callback_order)
  else
    redirect_to checkout_state_path(@callback_order.state)
  end
end