Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::SecurePayAuGateway

Constants

API_VERSION
LIVE_URL
SUCCESS_CODES
TEST_URL
TRANSACTIONS

0 Standard Payment 4 Refund 6 Client Reversal (Void) 10 Preauthorise 11 Preauth Complete (Advice)

Public Class Methods

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

Public Instance Methods

authorize(money, credit_card, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/secure_pay_au.rb, line 56
def authorize(money, credit_card, options = {})
  requires!(options, :order_id)
  commit :authorization, build_purchase_request(money, credit_card, options)
end
capture(money, reference, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/secure_pay_au.rb, line 61
def capture(money, reference, options = {})
  commit :capture, build_reference_request(money, reference)
end
credit(money, reference, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/secure_pay_au.rb, line 69
def credit(money, reference, options = {})
  deprecated CREDIT_DEPRECATION_MESSAGE
  refund(money, reference)
end
purchase(money, credit_card, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/secure_pay_au.rb, line 51
def purchase(money, credit_card, options = {})
  requires!(options, :order_id)
  commit :purchase, build_purchase_request(money, credit_card, options)
end
refund(money, reference, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/secure_pay_au.rb, line 65
def refund(money, reference, options = {})
  commit :refund, build_reference_request(money, reference)
end
test?() click to toggle source
# File lib/active_merchant/billing/gateways/secure_pay_au.rb, line 47
def test?
  @options[:test] || super
end
void(reference, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/secure_pay_au.rb, line 74
def void(reference, options = {})
  commit :void, build_reference_request(nil, reference)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.