Module: ActiveMerchant::Billing::Integrations::Citrus
- Defined in:
- lib/active_merchant/billing/integrations/citrus.rb,
lib/active_merchant/billing/integrations/citrus/helper.rb,
lib/active_merchant/billing/integrations/citrus/return.rb,
lib/active_merchant/billing/integrations/citrus/notification.rb
Defined Under Namespace
Classes: Helper, Notification, Return
Class Method Summary
collapse
Class Method Details
.checksum(secret_key, payload_items) ⇒ Object
21
22
23
24
|
# File 'lib/active_merchant/billing/integrations/citrus.rb', line 21
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
9
10
11
|
# File 'lib/active_merchant/billing/integrations/citrus.rb', line 9
def self.helper(order, account, options = {})
Helper.new(order, account, options)
end
|
.notification(post, options = {}) ⇒ Object
13
14
15
|
# File 'lib/active_merchant/billing/integrations/citrus.rb', line 13
def self.notification(post, options = {})
Notification.new(post, options)
end
|
.return(query_string, options = {}) ⇒ Object
17
18
19
|
# File 'lib/active_merchant/billing/integrations/citrus.rb', line 17
def self.return(query_string, options = {})
Return.new(query_string, options)
end
|