Methods

Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::CardStreamGateway

CardStream supports the following credit cards, which are auto-detected by the gateway based on the card number used:

Constants

APPROVED
AVS_POSTAL_MATCH

0 - No additional information available. 1 - Postcode not checked. 2 - Postcode matched. 4 - Postcode not matched. 8 - Postcode partially matched.

AVS_STREET_MATCH

0 - No additional information available. 1 - Address numeric not checked. 2 - Address numeric matched. 4 - Address numeric not matched. 8 - Address numeric partially matched.

CURRENCY_CODES
CVV_CODE
TRANSACTIONS
URL

Public Class Methods

new(options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/card_stream.rb, line 88
def initialize(options = {})
  requires!(options, :login, :password)
  @options = options
  super
end

Public Instance Methods

purchase(money, credit_card, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/card_stream.rb, line 94
def purchase(money, credit_card, options = {})
  requires!(options, :order_id)
  
  post = {}
  
  add_amount(post, money, options)
  add_invoice(post, money, credit_card, options)
  add_credit_card(post, credit_card)
  add_address(post, options)
  add_customer_data(post, options)

  commit(:purchase, post)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.