Sha256: 5d823b88661b5ec79cb98d10f7dc3da500dc20852a82964479587140461b5dee

Contents?: true

Size: 551 Bytes

Versions: 21

Compression:

Stored size: 551 Bytes

Contents

module ActiveMerchant #:nodoc:
  module Billing #:nodoc:
    class Flo2cashSimpleGateway < Flo2cashGateway
      self.display_name = 'Flo2Cash Simple'

      def purchase(amount, payment_method, options = {})
        post = {}
        add_invoice(post, amount, options)
        add_payment_method(post, payment_method)
        add_customer_data(post, options)

        commit('ProcessPurchase', post)
      end

      # Flo2Cash's "simple mode" does not support auth/capture
      undef_method :authorize
      undef_method :capture
    end
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
swiss-activemerchant-1.0.6 lib/active_merchant/billing/gateways/flo2cash_simple.rb
swiss-activemerchant-1.0.5 lib/active_merchant/billing/gateways/flo2cash_simple.rb
swiss-activemerchant-1.0.4 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.137.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
swiss-activemerchant-1.0.2 lib/active_merchant/billing/gateways/flo2cash_simple.rb
swiss-activemerchant-1.0.1 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.133.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.131.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.130.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.129.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.126.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.125.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
archetype2142_activemerchant-1.124.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.124.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.123.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.121.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.120.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.119.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.118.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.117.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb