Module: ActiveMerchant::Billing::SageCore

Included in:
SageBankcardGateway, SageVirtualCheckGateway
Defined in:
lib/active_merchant/billing/gateways/sage/sage_core.rb

Overview

:nodoc:

Constant Summary collapse

TRANSACTIONS =

Transactions types: 01 - Sale 02 - AuthOnly 03 - Force/PriorAuthSale 04 - Void 06 - Credit 11 - PriorAuthSale by Reference*

{
  :purchase           => '01',
  :authorization      => '02',
  :capture            => '11',
  :void               => '04',
  :credit             => '06',
  :refund             => '10'
}

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
# File 'lib/active_merchant/billing/gateways/sage/sage_core.rb', line 4

def self.included(base)
  base.cattr_accessor :source
  base.supported_countries = ['US', 'CA']
  base.homepage_url = 'http://www.sagepayments.com'
  base.display_name = 'Sage Payment Solutions'
end

Instance Method Details

#initialize(options = {}) ⇒ Object



27
28
29
30
# File 'lib/active_merchant/billing/gateways/sage/sage_core.rb', line 27

def initialize(options = {})
  requires!(options, :login, :password)
  super
end