Class: ActiveMerchant::Billing::Flo2cashSimpleGateway

Inherits:
Flo2cashGateway show all
Defined in:
lib/active_merchant/billing/gateways/flo2cash_simple.rb

Constant Summary

Constants inherited from Flo2cashGateway

ActiveMerchant::Billing::Flo2cashGateway::BRAND_MAP

Constants inherited from Gateway

Gateway::CREDIT_DEPRECATION_MESSAGE, Gateway::DEBIT_CARDS, Gateway::RECURRING_DEPRECATION_MESSAGE, Gateway::STANDARD_ERROR_CODE

Instance Attribute Summary

Attributes inherited from Gateway

#options

Instance Method Summary collapse

Methods inherited from Flo2cashGateway

#authorize, #capture, #initialize, #refund, #scrub, #supports_scrubbing?

Methods inherited from Gateway

#card_brand, card_brand, #generate_unique_id, inherited, #initialize, #scrub, #supported_countries, supported_countries, supported_countries=, supports?, #supports_network_tokenization?, #supports_scrubbing?, #test?

Methods included from CreditCardFormatting

#expdate, #format

Methods included from PostsData

included, #raw_ssl_request, #ssl_get, #ssl_post, #ssl_request

Constructor Details

This class inherits a constructor from ActiveMerchant::Billing::Flo2cashGateway

Instance Method Details

#purchase(amount, payment_method, options = {}) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/active_merchant/billing/gateways/flo2cash_simple.rb', line 6

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