Sha256: 5193c9be9d86758ff0cf9b71676822a51e6181ed0f6f18e58ba6231b3cdfa289

Contents?: true

Size: 549 Bytes

Versions: 39

Compression:

Stored size: 549 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

39 entries across 39 versions & 2 rubygems

Version Path
activemerchant-1.114.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.113.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.112.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.111.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.110.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.109.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.108.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.107.4 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.107.3 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.107.2 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.107.1 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.106.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.105.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.104.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.103.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.102.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.101.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.100.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.99.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.98.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb