Class: ActiveMerchant::Billing::SageGateway::SageVault

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

Instance Method Summary collapse

Constructor Details

#initialize(options, gateway) ⇒ SageVault

Returns a new instance of SageVault.



303
304
305
306
307
# File 'lib/active_merchant/billing/gateways/sage.rb', line 303

def initialize(options, gateway)
  @live_url = 'https://www.sagepayments.net/web_services/wsVault/wsVault.asmx'
  @options = options
  @gateway = gateway
end

Instance Method Details

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



309
310
311
312
# File 'lib/active_merchant/billing/gateways/sage.rb', line 309

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

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



314
315
316
317
# File 'lib/active_merchant/billing/gateways/sage.rb', line 314

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