Class: ActiveMerchant::Billing::SageVaultGateway
- 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
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SageVaultGateway
constructor
A new instance of SageVaultGateway.
- #store(credit_card, options = {}) ⇒ Object
- #unstore(identification, options = {}) ⇒ Object
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
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( = {}) requires!(, :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, = {}) request = build_store_request(credit_card, ) 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, = {}) request = build_unstore_request(identification, ) commit(:unstore, request) end |