Parent

Methods

Included Modules

Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::Integrations::DirecPay::Status

Attributes

account[R]
options[R]

Public Class Methods

new(account, options = {}) click to toggle source
# File lib/active_merchant/billing/integrations/direc_pay/status.rb, line 14
def initialize(account, options = {})
  @account, @options = account, options
end

Public Instance Methods

test?() click to toggle source
# File lib/active_merchant/billing/integrations/direc_pay/status.rb, line 29
def test?
  ActiveMerchant::Billing::Base.integration_mode == :test || options[:test]
end
update(authorization, notification_url) click to toggle source

Use this method to manually request a status update to the provided notification_url

# File lib/active_merchant/billing/integrations/direc_pay/status.rb, line 20
def update(authorization, notification_url)
  url = test? ? STATUS_TEST_URL : STATUS_LIVE_URL
  parameters = [ authorization, account, notification_url ]
  data = PostData.new
  data[:requestparams] = parameters.join('|')
  
  response = ssl_get("#{url}?#{data.to_post_data}")
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.