6
7
8
9
10
11
12
13
14
15
16
17
|
# File 'app/controllers/effective/providers/etransfer.rb', line 6
def etransfer
raise('etransfer provider is not available') unless EffectiveOrders.etransfer?
@order ||= Order.deep.find(params[:id])
@order.current_user = current_user unless admin_checkout?(etransfer_params)
EffectiveResources.authorize!(self, :update, @order)
flash[:success] = EffectiveOrders.etransfer[:success]
order_deferred(provider: 'etransfer', deferred_url: etransfer_params[:deferred_url])
end
|