Module: OffsitePayments::Integrations::Universal
- Defined in:
- lib/offsite_payments/integrations/universal.rb
Defined Under Namespace
Classes: Helper, Notification, Return
Class Method Summary
collapse
Class Method Details
.notification(post, options = {}) ⇒ Object
4
5
6
|
# File 'lib/offsite_payments/integrations/universal.rb', line 4
def self.notification(post, options = {})
Notification.new(post, options)
end
|
.return(query_string, options = {}) ⇒ Object
8
9
10
|
# File 'lib/offsite_payments/integrations/universal.rb', line 8
def self.return(query_string, options = {})
Return.new(query_string, options)
end
|
.sign(fields, key) ⇒ Object
12
13
14
|
# File 'lib/offsite_payments/integrations/universal.rb', line 12
def self.sign(fields, key)
OpenSSL::HMAC.hexdigest(OpenSSL::Digest::SHA256.new, key, fields.sort.join)
end
|