Parent

Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::Integrations::Return

Attributes

notification[R]
params[RW]

Public Class Methods

new(query_string, options = {}) click to toggle source
# File lib/active_merchant/billing/integrations/return.rb, line 8
def initialize(query_string, options = {})
  @params  = parse(query_string)
  @options = options
end

Public Instance Methods

cancelled?() click to toggle source

Not cancelled by default. Overridden in the child class.

# File lib/active_merchant/billing/integrations/return.rb, line 19
def cancelled?
  false
end
message() click to toggle source
# File lib/active_merchant/billing/integrations/return.rb, line 23
def message
  
end
parse(query_string) click to toggle source
# File lib/active_merchant/billing/integrations/return.rb, line 27
def parse(query_string)
  return {} if query_string.blank?
  
  query_string.split('&').inject({}) do |memo, chunk|
    next if chunk.empty?
    key, value = chunk.split('=', 2)
    next if key.empty?
    value = value.nil? ? nil : CGI.unescape(value)
    memo[CGI.unescape(key)] = value
    memo
  end
end
success?() click to toggle source

Successful by default. Overridden in the child class

# File lib/active_merchant/billing/integrations/return.rb, line 14
def success?
  true
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.