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
active_accountability_merchant-1.97.1 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.97.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.96.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.95.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.94.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.93.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.92.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.91.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.90.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.89.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.88.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.87.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.86.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.85.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.84.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.83.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.82.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.81.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.80.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb