Sha256: 9d5a39d5fcd07ae3d6f97343f1e99dd303c8286a60dd4355db49431a5dc161d0

Contents?: true

Size: 561 Bytes

Versions: 112

Compression:

Stored size: 561 Bytes

Contents

module Effective
  module Providers
    module Cheque
      extend ActiveSupport::Concern

      def cheque
        raise('cheque provider is not available') unless EffectiveOrders.cheque?

        @order ||= Order.find(params[:id])

        EffectiveResources.authorize!(self, :update, @order)

        flash[:success] = EffectiveOrders.cheque[:success]

        order_deferred(provider: 'cheque', deferred_url: cheque_params[:deferred_url])
      end

      def cheque_params
        params.require(:cheque).permit(:deferred_url)
      end

    end
  end
end

Version data entries

112 entries across 112 versions & 1 rubygems

Version Path
effective_orders-6.9.2 app/controllers/effective/providers/cheque.rb
effective_orders-6.9.1 app/controllers/effective/providers/cheque.rb
effective_orders-6.9.0 app/controllers/effective/providers/cheque.rb
effective_orders-6.8.2 app/controllers/effective/providers/cheque.rb
effective_orders-6.8.1 app/controllers/effective/providers/cheque.rb
effective_orders-6.8.0 app/controllers/effective/providers/cheque.rb
effective_orders-6.7.3 app/controllers/effective/providers/cheque.rb
effective_orders-6.7.2 app/controllers/effective/providers/cheque.rb
effective_orders-6.7.1 app/controllers/effective/providers/cheque.rb
effective_orders-6.7.0 app/controllers/effective/providers/cheque.rb
effective_orders-6.6.3 app/controllers/effective/providers/cheque.rb
effective_orders-6.6.2 app/controllers/effective/providers/cheque.rb
effective_orders-6.6.1 app/controllers/effective/providers/cheque.rb
effective_orders-6.6.0 app/controllers/effective/providers/cheque.rb
effective_orders-6.5.9 app/controllers/effective/providers/cheque.rb
effective_orders-6.5.8 app/controllers/effective/providers/cheque.rb
effective_orders-6.5.7 app/controllers/effective/providers/cheque.rb
effective_orders-6.5.6 app/controllers/effective/providers/cheque.rb
effective_orders-6.5.5 app/controllers/effective/providers/cheque.rb
effective_orders-6.5.4 app/controllers/effective/providers/cheque.rb