Class: ActiveMerchant::Billing::SageGateway::SageVault
- Inherits:
-
Object
- Object
- ActiveMerchant::Billing::SageGateway::SageVault
- Defined in:
- lib/active_merchant/billing/gateways/sage.rb
Instance Method Summary collapse
-
#initialize(options, gateway) ⇒ SageVault
constructor
A new instance of SageVault.
- #store(credit_card, options = {}) ⇒ Object
- #unstore(identification, options = {}) ⇒ Object
Constructor Details
#initialize(options, gateway) ⇒ SageVault
Returns a new instance of SageVault.
300 301 302 303 304 |
# File 'lib/active_merchant/billing/gateways/sage.rb', line 300 def initialize(, gateway) @live_url = 'https://www.sagepayments.net/web_services/wsVault/wsVault.asmx' @options = @gateway = gateway end |
Instance Method Details
#store(credit_card, options = {}) ⇒ Object
306 307 308 309 |
# File 'lib/active_merchant/billing/gateways/sage.rb', line 306 def store(credit_card, = {}) request = build_store_request(credit_card, ) commit(:store, request) end |
#unstore(identification, options = {}) ⇒ Object
311 312 313 314 |
# File 'lib/active_merchant/billing/gateways/sage.rb', line 311 def unstore(identification, = {}) request = build_unstore_request(identification, ) commit(:unstore, request) end |