Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::FederatedCanadaGateway

Constants

ERROR
URL

Same URL for both test and live, testing is done by using the test username (demo) and password (password).

Public Class Methods

new(options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/federated_canada.rb, line 23
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/federated_canada.rb, line 38
def authorize(money, creditcard, options = {})
  post = {}
  add_invoice(post, options)
  add_creditcard(post, creditcard)
  add_address(post, options)
  add_customer_data(post, options)
  commit('auth', money, post)
end
capture(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/federated_canada.rb, line 47
def capture(money, authorization, options = {})
  options[:transactionid] = authorization
  commit('capture', money, options)
end
credit(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/federated_canada.rb, line 61
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/federated_canada.rb, line 29
def purchase(money, creditcard, options = {})
  post = {}
  add_invoice(post, options)
  add_creditcard(post, creditcard)
  add_address(post, options)
  add_customer_data(post, options)
  commit('sale', money, post)
end
refund(money, authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/federated_canada.rb, line 57
def refund(money, authorization, options = {})
  commit('refund', money, options.merge(:transactionid => authorization))
end
void(authorization, options = {}) click to toggle source
# File lib/active_merchant/billing/gateways/federated_canada.rb, line 52
def void(authorization, options = {})
  options[:transactionid] = authorization
  commit('void', nil, options)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.