Module: Effective::Providers::Cheque
- Extended by:
- ActiveSupport::Concern
- Included in:
- OrdersController
- Defined in:
- app/controllers/effective/providers/cheque.rb
Instance Method Summary collapse
Instance Method Details
#cheque ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/effective/providers/cheque.rb', line 6 def cheque raise('cheque provider is not available') unless EffectiveOrders.cheque? @order ||= Order.find(params[:id]) EffectiveResources.(self, :update, @order) flash[:success] = EffectiveOrders.cheque[:success] order_deferred(provider: 'cheque', deferred_url: cheque_params[:deferred_url]) end |
#cheque_params ⇒ Object
18 19 20 |
# File 'app/controllers/effective/providers/cheque.rb', line 18 def cheque_params params.require(:cheque).permit(:deferred_url) end |