Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::PsigateGateway

Public Class Methods

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

Public Instance Methods

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

Psigate PreAuth

# File lib/active_merchant/billing/gateways/psigate.rb, line 60
def authorize(money, creditcard, options = {})
  requires!(options, :order_id)                                                          
  options.update({ :CardAction => "1" })
  commit(money, creditcard, options)      
end
capture(money, authorization, options = {}) click to toggle source

Psigate PostAuth

# File lib/active_merchant/billing/gateways/psigate.rb, line 74
def capture(money, authorization, options = {})
  options.update({ :CardAction => "2", :order_id => authorization })
  commit(money, nil, options)
end
credit(money, authorization, options = {}) click to toggle source

Psigate Credit

# File lib/active_merchant/billing/gateways/psigate.rb, line 81
def credit(money, authorization, options = {})
  deprecated CREDIT_DEPRECATION_MESSAGE
  refund(money, authorization, options)
end
purchase(money, creditcard, options = {}) click to toggle source

Psigate Sale

# File lib/active_merchant/billing/gateways/psigate.rb, line 67
def purchase(money, creditcard, options = {})
  requires!(options, :order_id)                                                          
  options.update({ :CardAction => "0" })
  commit(money, creditcard, options)     
end
refund(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/psigate.rb, line 86
def refund(money, authorization, options = {})
  options.update({ :CardAction => "3", :order_id => authorization })
  commit(money, nil, options)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.