Module: OffsitePayments::Integrations::Citrus
- Defined in:
- lib/offsite_payments/integrations/citrus.rb
Defined Under Namespace
Classes: Helper, Notification, Return
Class Method Summary
collapse
Class Method Details
.checksum(secret_key, payload_items) ⇒ Object
16
17
18
19
|
# File 'lib/offsite_payments/integrations/citrus.rb', line 16
def self.checksum(secret_key, payload_items )
digest = OpenSSL::Digest.new('sha1')
OpenSSL::HMAC.hexdigest(digest, secret_key, payload_items)
end
|
.helper(order, account, options = {}) ⇒ Object
4
5
6
|
# File 'lib/offsite_payments/integrations/citrus.rb', line 4
def self.helper(order, account, options = {})
Helper.new(order, account, options)
end
|
.notification(post, options = {}) ⇒ Object
8
9
10
|
# File 'lib/offsite_payments/integrations/citrus.rb', line 8
def self.notification(post, options = {})
Notification.new(post, options)
end
|
.return(query_string, options = {}) ⇒ Object
12
13
14
|
# File 'lib/offsite_payments/integrations/citrus.rb', line 12
def self.return(query_string, options = {})
Return.new(query_string, options)
end
|