Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::QuantumGateway

ActiveMerchant Implementation for Quantum Gateway XML Requester Service Based on API Doc from 8/6/2009

Important Notes

Constants

LIVE_URL

Public Class Methods

new(options = {}) click to toggle source

These are the options that can be used when creating a new Quantum Gateway object.

:login => Your Quantum Gateway Gateway ID

:password => Your Quantum Gateway Vault Key or Restrict Key

NOTE: For testing supply your test GatewayLogin and GatewayKey

:email_receipt => true if you want a receipt sent to the customer (false be default)

:merchant_receipt => true if you want to override receiving the merchant receipt

:ignore_avs => true ignore both AVS and CVV verification :ignore_cvv => true don’t want to use CVV so continue processing even if CVV would have failed

# File lib/active_merchant/billing/gateways/quantum.rb, line 38
def initialize(options = {})
  requires!(options, :login, :password)
  @options = options
  super
end

Public Instance Methods

authorize(money, creditcard, options = {}) click to toggle source

Request an authorization for an amount from CyberSource

# File lib/active_merchant/billing/gateways/quantum.rb, line 51
def authorize(money, creditcard, options = {})
  setup_address_hash(options)
  commit(build_auth_request(money, creditcard, options), options )
end
capture(money, authorization, options = {}) click to toggle source

Capture an authorization that has previously been requested

# File lib/active_merchant/billing/gateways/quantum.rb, line 57
def capture(money, authorization, options = {})
  setup_address_hash(options)
  commit(build_capture_request(money, authorization, options), options)
end
credit(money, identification, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/quantum.rb, line 77
def credit(money, identification, options = {})
  deprecated CREDIT_DEPRECATION_MESSAGE
  refund(money, identification, options)
end
purchase(money, creditcard, options = {}) click to toggle source

Purchase is an auth followed by a capture You must supply an order_id in the options hash

# File lib/active_merchant/billing/gateways/quantum.rb, line 64
def purchase(money, creditcard, options = {})
  setup_address_hash(options)
  commit(build_purchase_request(money, creditcard, options), options)
end
refund(money, identification, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/quantum.rb, line 73
def refund(money, identification, options = {})
  commit(build_credit_request(money, identification, options), options)
end
test?() click to toggle source

Should run against the test servers or not?

# File lib/active_merchant/billing/gateways/quantum.rb, line 45
def test?
  @options[:test] || Base.gateway_mode == :test
end
void(identification, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/quantum.rb, line 69
def void(identification, options = {})
  commit(build_void_request(identification, options), options)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.