Sha256: 37b10254f8e466e55a9b28101a6813132590a8d23644fcc431a70a6f7e9ce6b2
Contents?: true
Size: 1.14 KB
Versions: 10
Compression:
Stored size: 1.14 KB
Contents
require 'digest/sha2' require 'bigdecimal' module ActiveMerchant #:nodoc: module Billing #:nodoc: module Integrations #:nodoc: module PayuIn autoload :Return, 'active_merchant/billing/integrations/payu_in/return.rb' autoload :Helper, 'active_merchant/billing/integrations/payu_in/helper.rb' autoload :Notification, 'active_merchant/billing/integrations/payu_in/notification.rb' mattr_accessor :test_url mattr_accessor :production_url self.test_url = 'https://test.payu.in/_payment.php' self.production_url = 'https://secure.payu.in/_payment.php' def self.service_url ActiveMerchant::Billing::Base.integration_mode == :production ? self.production_url : self.test_url end def self.notification(post, options = {}) Notification.new(post, options) end def self.return(post, options = {}) Return.new(post, options) end def self.checksum(merchant_id, secret_key, payload_items ) Digest::SHA512.hexdigest([merchant_id, *payload_items, secret_key].join("|")) end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems