Parent

Methods

Included Modules

Class Index [+]

Quicksearch

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

Constants

STATUS_TEST_URL
STATUS_LIVE_URL

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
14:           def initialize(account, options = {})
15:             @account, @options = account, options
16:           end

Public Instance Methods

test?() click to toggle source
    # File lib/active_merchant/billing/integrations/direc_pay/status.rb, line 29
29:           def test?
30:             ActiveMerchant::Billing::Base.integration_mode == :test || options[:test]
31:           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
20:           def update(authorization, notification_url)
21:             url = test? ? STATUS_TEST_URL : STATUS_LIVE_URL
22:             parameters = [ authorization, account, notification_url ]
23:             data = PostData.new
24:             data[:requestparams] = parameters.join('|')
25:             
26:             response = ssl_get("#{url}?#{data.to_post_data}")
27:           end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.