Sha256: 5d823b88661b5ec79cb98d10f7dc3da500dc20852a82964479587140461b5dee

Contents?: true

Size: 551 Bytes

Versions: 30

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

30 entries across 30 versions & 4 rubygems

Version Path
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
activemerchant-1.116.0 lib/active_merchant/billing/gateways/flo2cash_simple.rb