Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::ExactGateway

Public Class Methods

new(options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/exact.rb, line 43
def initialize(options = {})
  requires!(options, :login, :password)
  @options = options
  
  if TEST_LOGINS.include?( { :login => options[:login], :password => options[:password] } )
    @test_mode = true
  end

  super
end

Public Instance Methods

authorize(money, credit_card, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/exact.rb, line 58
def authorize(money, credit_card, options = {})
  commit(:authorization, build_sale_or_authorization_request(money, credit_card, options))
end
capture(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/exact.rb, line 66
def capture(money, authorization, options = {})
  commit(:capture, build_capture_or_credit_request(money, authorization, options))
end
credit(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/exact.rb, line 70
def credit(money, authorization, options = {})
  deprecated CREDIT_DEPRECATION_MESSAGE
  refund(money, authorization, options)
end
purchase(money, credit_card, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/exact.rb, line 62
def purchase(money, credit_card, options = {})
  commit(:sale, build_sale_or_authorization_request(money, credit_card, options))
end
refund(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/exact.rb, line 75
def refund(money, authorization, options = {})
  commit(:credit, build_capture_or_credit_request(money, authorization, options))
end
test?() click to toggle source
# File lib/active_merchant/billing/gateways/exact.rb, line 54
def test?
  @test_mode || Base.gateway_mode == :test
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.