Sha256: c3824615a7e589eeedc3fb9637e5f09d63dbcc34b2f31741ef5409caa754a055

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 & 3 rubygems

Version Path
activemerchant-1.79.2 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.79.1 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.79.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.78.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.77.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.76.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.75.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.74.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.73.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.72.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.71.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.70.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.69.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.68.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.67.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.66.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.65.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.64.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.63.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb
activemerchant-1.62.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb