module PayuIndia
Constants
- VERSION
Public Class Methods
checksum(merchant_id, secret_key, payload_items )
click to toggle source
# File lib/payuindia.rb, line 33 def self.checksum(merchant_id, secret_key, payload_items ) puts "string for hash." s = [merchant_id, *payload_items, secret_key].join("|") puts s.to_s puts "hash" puts Digest::SHA512.hexdigest(s) Digest::SHA512.hexdigest(s) end
notification(post, options = {})
click to toggle source
# File lib/payuindia.rb, line 25 def self.notification(post, options = {}) Notification.new(post, options) end
return(post, options = {})
click to toggle source
# File lib/payuindia.rb, line 29 def self.return(post, options = {}) Return.new(post, options) end
service_url()
click to toggle source
# File lib/payuindia.rb, line 17 def self.service_url defined?(Rails) && Rails.env == 'production' ? self.production_url : self.test_url end
webservice_url()
click to toggle source
# File lib/payuindia.rb, line 21 def self.webservice_url defined?(Rails) && Rails.env == 'production' ? self.webservice_production_url : self.webservice_test_url end