Class ActiveMerchant::Billing::SecurePayAuGateway
In: lib/active_merchant/billing/gateways/secure_pay_au.rb
Parent: Gateway

Methods

new   purchase   test?  

Constants

API_VERSION = 'xml-4.2'
TEST_URL = 'https://www.securepay.com.au/test/payment'
LIVE_URL = 'https://www.securepay.com.au/xmlapi/payment'
TRANSACTIONS = { :purchase => 0, :authorization => 10, :capture => 11, :void => 6, :credit => 4   0 Standard Payment 4 Refund 6 Client Reversal (Void) 10 Preauthorise 11 Preauth Complete (Advice)
SUCCESS_CODES = [ '00', '08', '11', '16', '77' ]

Public Class methods

[Source]

    # File lib/active_merchant/billing/gateways/secure_pay_au.rb, line 41
41:       def initialize(options = {})
42:         requires!(options, :login, :password)
43:         @options = options
44:         super
45:       end

Public Instance methods

[Source]

    # File lib/active_merchant/billing/gateways/secure_pay_au.rb, line 51
51:       def purchase(money, credit_card, options = {})
52:         commit :purchase, build_purchase_request(money, credit_card, options)
53:       end

[Source]

    # File lib/active_merchant/billing/gateways/secure_pay_au.rb, line 47
47:       def test?
48:         @options[:test] || super
49:       end

[Validate]