module OffsitePayments::Integrations::Platron

Platron API: www.platron.ru/PlatronAPI.pdf

Public Class Methods

generate_signature(params, path, secret) click to toggle source
# File lib/offsite_payments/integrations/platron.rb, line 19
def self.generate_signature(params, path, secret)
  Digest::MD5.hexdigest(generate_signature_string(params, path, secret))
end
generate_signature_string(params, path, secret) click to toggle source
# File lib/offsite_payments/integrations/platron.rb, line 14
def self.generate_signature_string(params, path, secret)
  sorted_params = params.sort_by{|k,v| k.to_s}.collect{|k,v| v}
  [path, sorted_params, secret].flatten.compact.join(';')
end
notification(raw_post) click to toggle source
# File lib/offsite_payments/integrations/platron.rb, line 10
def self.notification(raw_post)
  Notification.new(raw_post)
end