Module: OffsitePayments::Integrations::Platron
- Defined in:
- lib/offsite_payments/integrations/platron.rb
Overview
Defined Under Namespace
Classes: Helper, Notification
Class Method Summary
collapse
Class Method Details
.generate_signature(params, path, secret) ⇒ Object
19
20
21
|
# 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) ⇒ Object
14
15
16
17
|
# 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) ⇒ Object
10
11
12
|
# File 'lib/offsite_payments/integrations/platron.rb', line 10
def self.notification(raw_post)
Notification.new(raw_post)
end
|