Sha256: c869a493767caeb74c516e22064d08baef9472751ddd3592cb9067135aefa139

Contents?: true

Size: 844 Bytes

Versions: 5

Compression:

Stored size: 844 Bytes

Contents

module ActiveMerchant
  module Billing
    module Integrations
      module Citrus
        autoload :Helper, File.dirname(__FILE__) + '/citrus/helper.rb'
        autoload :Notification, File.dirname(__FILE__) + '/citrus/notification.rb'
        autoload :Return, File.dirname(__FILE__) + '/citrus/return.rb'

        def self.helper(order, account, options = {})
          Helper.new(order, account, options)
        end

        def self.notification(post, options = {})
          Notification.new(post, options)
        end

        def self.return(query_string, options = {})
          Return.new(query_string, options)
        end

        def self.checksum(secret_key, payload_items )
          digest = OpenSSL::Digest.new('sha1')
		      OpenSSL::HMAC.hexdigest(digest, secret_key, payload_items)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activemerchant-1.43.3 lib/active_merchant/billing/integrations/citrus.rb
activemerchant-1.43.1 lib/active_merchant/billing/integrations/citrus.rb
activemerchant-1.43.0 lib/active_merchant/billing/integrations/citrus.rb
activemerchant-1.42.9 lib/active_merchant/billing/integrations/citrus.rb
activemerchant-1.42.8 lib/active_merchant/billing/integrations/citrus.rb