Sha256: 02b0128d1858128de6003a58a21473f8b20c67bfa723732d0a034fac6d7a5f5e

Contents?: true

Size: 461 Bytes

Versions: 39

Compression:

Stored size: 461 Bytes

Contents

module Effective
  module Providers
    module Pretend
      extend ActiveSupport::Concern

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

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

        order_purchased(
          payment: 'for pretend',
          provider: 'pretend',
          card: 'none',
          purchased_url: params[:purchased_url],
          declined_url: params[:declined_url]
        )
      end

    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
effective_orders-4.2.7 app/controllers/effective/providers/pretend.rb
effective_orders-4.2.6 app/controllers/effective/providers/pretend.rb
effective_orders-4.2.5 app/controllers/effective/providers/pretend.rb
effective_orders-4.2.4 app/controllers/effective/providers/pretend.rb
effective_orders-4.2.3 app/controllers/effective/providers/pretend.rb
effective_orders-4.2.2 app/controllers/effective/providers/pretend.rb
effective_orders-4.2.1 app/controllers/effective/providers/pretend.rb
effective_orders-4.2.0 app/controllers/effective/providers/pretend.rb
effective_orders-4.1.5 app/controllers/effective/providers/pretend.rb
effective_orders-4.1.4 app/controllers/effective/providers/pretend.rb
effective_orders-4.1.3 app/controllers/effective/providers/pretend.rb
effective_orders-4.1.2 app/controllers/effective/providers/pretend.rb
effective_orders-4.1.1 app/controllers/effective/providers/pretend.rb
effective_orders-4.1.0 app/controllers/effective/providers/pretend.rb
effective_orders-4.0.6 app/controllers/effective/providers/pretend.rb
effective_orders-4.0.5 app/controllers/effective/providers/pretend.rb
effective_orders-4.0.4 app/controllers/effective/providers/pretend.rb
effective_orders-4.0.3 app/controllers/effective/providers/pretend.rb
effective_orders-4.0.2 app/controllers/effective/providers/pretend.rb
effective_orders-4.0.1 app/controllers/effective/providers/pretend.rb