Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::NetaxeptGateway

Public Class Methods

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

Public Instance Methods

authorize(money, creditcard, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/netaxept.rb, line 42
def authorize(money, creditcard, options = {})
  requires!(options, :order_id)

  post = {}
  add_credentials(post, options)
  add_transaction(post, options)
  add_order(post, money, options)
  add_creditcard(post, creditcard)
  commit('Auth', post)
end
capture(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/netaxept.rb, line 53
def capture(money, authorization, options = {})
  post = {}
  add_credentials(post, options)
  add_authorization(post, authorization, money)
  commit('Capture', post, false)
end
credit(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/netaxept.rb, line 67
def credit(money, authorization, options = {})
  deprecated CREDIT_DEPRECATION_MESSAGE
  refund(money, authorization, options)
end
purchase(money, creditcard, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/netaxept.rb, line 31
def purchase(money, creditcard, options = {})
  requires!(options, :order_id)

  post = {}
  add_credentials(post, options)
  add_transaction(post, options)
  add_order(post, money, options)
  add_creditcard(post, creditcard)
  commit('Sale', post)
end
refund(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/netaxept.rb, line 60
def refund(money, authorization, options = {})
  post = {}
  add_credentials(post, options)
  add_authorization(post, authorization, money)
  commit('Credit', post, false)
end
test?() click to toggle source
# File lib/active_merchant/billing/gateways/netaxept.rb, line 79
def test?
  @options[:test] || Base.gateway_mode == :test
end
void(authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/netaxept.rb, line 72
def void(authorization, options = {})
  post = {}
  add_credentials(post, options)
  add_authorization(post, authorization)
  commit('Annul', post, false)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.