Class ActiveMerchant::Billing::UsaEpayGateway
In: lib/active_merchant/billing/gateways/usa_epay.rb
Parent: Gateway

Methods

authorize   capture   new   purchase  

Constants

URL = 'https://www.usaepay.com/gate.php'
TRANSACTIONS = { :authorization => 'authonly', :purchase => 'sale', :capture => 'capture'

Public Class methods

[Source]

    # File lib/active_merchant/billing/gateways/usa_epay.rb, line 18
18:       def initialize(options = {})
19:         requires!(options, :login)
20:         @options = options
21:         super
22:       end

Public Instance methods

[Source]

    # File lib/active_merchant/billing/gateways/usa_epay.rb, line 24
24:       def authorize(money, credit_card, options = {})
25:         post = {}
26:         
27:         add_amount(post, money)
28:         add_invoice(post, options)
29:         add_credit_card(post, credit_card)        
30:         add_address(post, credit_card, options)        
31:         add_customer_data(post, options)
32:         
33:         commit(:authorization, post)
34:       end

[Source]

    # File lib/active_merchant/billing/gateways/usa_epay.rb, line 48
48:       def capture(money, authorization, options = {})
49:         post = {
50:           :refNum => authorization
51:         }
52:         
53:         add_amount(post, money)
54:         commit(:capture, post)
55:       end

[Source]

    # File lib/active_merchant/billing/gateways/usa_epay.rb, line 36
36:       def purchase(money, credit_card, options = {})
37:         post = {}
38:         
39:         add_amount(post, money)
40:         add_invoice(post, options)
41:         add_credit_card(post, credit_card)        
42:         add_address(post, credit_card, options)   
43:         add_customer_data(post, options)
44:              
45:         commit(:purchase, post)
46:       end

[Validate]