Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::UsaEpayTransactionGateway

Constants

TRANSACTIONS
URL

Public Class Methods

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

Public Instance Methods

authorize(money, credit_card, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/usa_epay_transaction.rb, line 24
def authorize(money, credit_card, options = {})
  post = {}
  
  add_amount(post, money)
  add_invoice(post, options)
  add_credit_card(post, credit_card)        
  add_address(post, credit_card, options)        
  add_customer_data(post, options)
  
  commit(:authorization, post)
end
capture(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/usa_epay_transaction.rb, line 48
def capture(money, authorization, options = {})
  post = {
    :refNum => authorization
  }
  
  add_amount(post, money)
  commit(:capture, post)
end
purchase(money, credit_card, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/usa_epay_transaction.rb, line 36
def purchase(money, credit_card, options = {})
  post = {}
  
  add_amount(post, money)
  add_invoice(post, options)
  add_credit_card(post, credit_card)        
  add_address(post, credit_card, options)   
  add_customer_data(post, options)
       
  commit(:purchase, post)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.