Sha256: 159fae2cdddfbb7d81e40484e1bf478360981fc53c635d1cab9f4a30d65141e3

Contents?: true

Size: 588 Bytes

Versions: 50

Compression:

Stored size: 588 Bytes

Contents

module Effective
  module Providers
    module Etransfer
      extend ActiveSupport::Concern

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

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

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

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

        order_deferred(provider: 'etransfer', deferred_url: etransfer_params[:deferred_url])
      end

      def etransfer_params
        params.require(:etransfer).permit(:deferred_url)
      end

    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
effective_orders-6.5.3 app/controllers/effective/providers/etransfer.rb
effective_orders-6.5.2 app/controllers/effective/providers/etransfer.rb
effective_orders-6.5.1 app/controllers/effective/providers/etransfer.rb
effective_orders-6.5.0 app/controllers/effective/providers/etransfer.rb
effective_orders-6.4.4 app/controllers/effective/providers/etransfer.rb
effective_orders-6.4.3 app/controllers/effective/providers/etransfer.rb
effective_orders-6.4.2 app/controllers/effective/providers/etransfer.rb
effective_orders-6.4.1 app/controllers/effective/providers/etransfer.rb
effective_orders-6.4.0 app/controllers/effective/providers/etransfer.rb
effective_orders-6.3.2 app/controllers/effective/providers/etransfer.rb
effective_orders-6.3.1 app/controllers/effective/providers/etransfer.rb
effective_orders-6.3.0 app/controllers/effective/providers/etransfer.rb
effective_orders-6.2.1 app/controllers/effective/providers/etransfer.rb
effective_orders-6.2.0 app/controllers/effective/providers/etransfer.rb
effective_orders-6.1.5 app/controllers/effective/providers/etransfer.rb
effective_orders-6.1.4 app/controllers/effective/providers/etransfer.rb
effective_orders-6.1.3 app/controllers/effective/providers/etransfer.rb
effective_orders-6.1.2 app/controllers/effective/providers/etransfer.rb
effective_orders-6.1.1 app/controllers/effective/providers/etransfer.rb
effective_orders-6.1.0 app/controllers/effective/providers/etransfer.rb