class OffsitePayments::Integrations::Paxum::Notification

Public Class Methods

new(post, options = {}) click to toggle source
Calls superclass method OffsitePayments::Notification::new
# File lib/offsite_payments/integrations/paxum.rb, line 90
def initialize(post, options = {})
  @raw_post = post.dup
  post.slice!(0)
  super
end
recognizes?(params) click to toggle source
# File lib/offsite_payments/integrations/paxum.rb, line 96
def self.recognizes?(params)
  (params.has_key?('transaction_item_id') && params.has_key?('transaction_amount'))
end

Public Instance Methods

acknowledge(authcode = nil) click to toggle source
# File lib/offsite_payments/integrations/paxum.rb, line 108
def acknowledge(authcode = nil)
  (security_key == generate_signature)
end
secret() click to toggle source
# File lib/offsite_payments/integrations/paxum.rb, line 104
def secret
  @options[:secret]
end
security_key() click to toggle source
# File lib/offsite_payments/integrations/paxum.rb, line 100
def security_key
  params["key"]
end