Class: ActiveMerchant::Billing::SageVaultGateway

Inherits:
Gateway
  • Object
show all
Defined in:
lib/active_merchant/billing/gateways/sage/sage_vault.rb

Overview

:nodoc:

Constant Summary

Constants inherited from Gateway

Gateway::CREDIT_DEPRECATION_MESSAGE, Gateway::CURRENCIES_WITHOUT_FRACTIONS, Gateway::DEBIT_CARDS, Gateway::RECURRING_DEPRECATION_MESSAGE, Gateway::STANDARD_ERROR_CODE

Instance Attribute Summary

Attributes inherited from Gateway

#options

Instance Method Summary collapse

Methods inherited from Gateway

card_brand, #card_brand, #generate_unique_id, inherited, non_fractional_currency?, #scrub, supported_countries, #supported_countries, supported_countries=, supports?, #supports_network_tokenization?, #supports_scrubbing?, #test?

Methods included from CreditCardFormatting

#expdate, #format

Methods included from PostsData

included, #raw_ssl_request, #ssl_get, #ssl_post, #ssl_request

Constructor Details

#initialize(options = {}) ⇒ SageVaultGateway

Returns a new instance of SageVaultGateway



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

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

Instance Method Details

#store(credit_card, options = {}) ⇒ Object



11
12
13
14
# File 'lib/active_merchant/billing/gateways/sage/sage_vault.rb', line 11

def store(credit_card, options = {})
  request = build_store_request(credit_card, options)
  commit(:store, request)
end

#unstore(identification, options = {}) ⇒ Object



16
17
18
19
# File 'lib/active_merchant/billing/gateways/sage/sage_vault.rb', line 16

def unstore(identification, options = {})
  request = build_unstore_request(identification, options)
  commit(:unstore, request)
end