Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::NetbillingGateway

Public Class Methods

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

Public Instance Methods

authorize(money, credit_card, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/netbilling.rb, line 30
def authorize(money, credit_card, options = {})
  post = {}
  add_amount(post, money)
  add_invoice(post, options)
  add_credit_card(post, credit_card)        
  add_address(post, credit_card, options)        
  add_customer_data(post, options)
  
  commit(:authorization, money, post)
end
capture(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/netbilling.rb, line 52
def capture(money, authorization, options = {})
  post = {}
  add_reference(post, authorization)
  commit(:capture, money, post)
end
purchase(money, credit_card, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/netbilling.rb, line 41
def purchase(money, credit_card, options = {})
  post = {}
  add_amount(post, money)
  add_invoice(post, options)
  add_credit_card(post, credit_card)        
  add_address(post, credit_card, options)        
  add_customer_data(post, options)
       
  commit(:purchase, money, post)
end
test?() click to toggle source
# File lib/active_merchant/billing/gateways/netbilling.rb, line 58
def test?
  @options[:login] == TEST_LOGIN || super
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.