Sha256: 0982110d07c88a895b894d93cd6f22d9b22037a2c60112f649c9a09f95fabc3d

Contents?: true

Size: 497 Bytes

Versions: 24

Compression:

Stored size: 497 Bytes

Contents

module Effective
  module Providers
    module Pretend
      extend ActiveSupport::Concern

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

        EffectiveOrders.authorized?(self, :update, @order)

        order_purchased(
          details: 'for pretend',
          provider: 'pretend',
          card: 'none',
          redirect_url: params[:purchased_redirect_url],
          declined_redirect_url: params[:declined_redirect_url]
        )
      end

    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
effective_orders-2.2.4 app/controllers/effective/providers/pretend.rb
effective_orders-2.2.3 app/controllers/effective/providers/pretend.rb
effective_orders-2.2.2 app/controllers/effective/providers/pretend.rb
effective_orders-2.2.1 app/controllers/effective/providers/pretend.rb
effective_orders-2.2.0 app/controllers/effective/providers/pretend.rb
effective_orders-2.1.17 app/controllers/effective/providers/pretend.rb
effective_orders-2.1.16 app/controllers/effective/providers/pretend.rb
effective_orders-2.1.15 app/controllers/effective/providers/pretend.rb
effective_orders-2.1.14 app/controllers/effective/providers/pretend.rb
effective_orders-2.1.13 app/controllers/effective/providers/pretend.rb
effective_orders-2.1.12 app/controllers/effective/providers/pretend.rb
effective_orders-2.1.10 app/controllers/effective/providers/pretend.rb
effective_orders-2.1.9 app/controllers/effective/providers/pretend.rb
effective_orders-2.1.8 app/controllers/effective/providers/pretend.rb
effective_orders-2.1.7 app/controllers/effective/providers/pretend.rb
effective_orders-2.1.6 app/controllers/effective/providers/pretend.rb
effective_orders-2.1.5 app/controllers/effective/providers/pretend.rb
effective_orders-2.1.4 app/controllers/effective/providers/pretend.rb
effective_orders-2.1.3 app/controllers/effective/providers/pretend.rb
effective_orders-2.1.2 app/controllers/effective/providers/pretend.rb