Methods

Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::TransFirstGateway

Public Class Methods

new(options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/trans_first.rb, line 15
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/trans_first.rb, line 21
def purchase(money, credit_card, options = {})
  post = {}
  
  add_amount(post, money)
  add_invoice(post, options)
  add_credit_card(post, credit_card)        
  add_address(post, options)   
       
  commit(post)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.