Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::PaymentExpressGateway

In NZ DPS supports ANZ, Westpac, National Bank, ASB and BNZ. In Australia DPS supports ANZ, NAB, Westpac, CBA, St George and Bank of South Australia. The Maybank in Malaysia is supported and the Citibank for Singapore.

Public Class Methods

new(options = {}) click to toggle source

We require the DPS gateway username and password when the object is created.

# File lib/active_merchant/billing/gateways/payment_express.rb, line 37
def initialize(options = {})
  # A DPS username and password must exist 
  requires!(options, :login, :password)
  # Make the options an instance variable
  @options = options
  super
end

Public Instance Methods

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

NOTE: Perhaps in options we allow a transaction note to be inserted Verifies that funds are available for the requested card and amount and reserves the specified amount. See: www.paymentexpress.com/technical_resources/ecommerce_nonhosted/pxpost.html#Authcomplete

# File lib/active_merchant/billing/gateways/payment_express.rb, line 54
def authorize(money, payment_source, options = {})
  request = build_purchase_or_authorization_request(money, payment_source, options)
  commit(:authorization, request)
end
capture(money, identification, options = {}) click to toggle source

Transfer pre-authorized funds immediately See: www.paymentexpress.com/technical_resources/ecommerce_nonhosted/pxpost.html#Authcomplete

# File lib/active_merchant/billing/gateways/payment_express.rb, line 61
def capture(money, identification, options = {})
  request = build_capture_or_credit_request(money, identification, options)                                            
  commit(:capture, request)
end
credit(money, identification, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/payment_express.rb, line 74
def credit(money, identification, options = {})
  deprecated CREDIT_DEPRECATION_MESSAGE
  refund(money, identification, options)
end
purchase(money, payment_source, options = {}) click to toggle source

Funds are transferred immediately.

# File lib/active_merchant/billing/gateways/payment_express.rb, line 46
def purchase(money, payment_source, options = {})
  request = build_purchase_or_authorization_request(money, payment_source, options)
  commit(:purchase, request)      
end
refund(money, identification, options = {}) click to toggle source

Refund funds to the card holder

# File lib/active_merchant/billing/gateways/payment_express.rb, line 67
def refund(money, identification, options = {})
  requires!(options, :description)
  
  request = build_capture_or_credit_request(money, identification, options)                                            
  commit(:credit, request)
end
store(credit_card, options = {}) click to toggle source

initiates a “Validate” transcation to store card data on payment express servers returns a “token” that can be used to rebill this card see: www.paymentexpress.com/technical_resources/ecommerce_nonhosted/pxpost.html#Tokenbilling PaymentExpress does not support unstoring a stored card.

# File lib/active_merchant/billing/gateways/payment_express.rb, line 85
def store(credit_card, options = {})
  request  = build_token_request(credit_card, options)
  commit(:validate, request)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.