module OffsitePayments::Integrations::Paydollar
Constants
- CURRENCY_MAP
Public Class Methods
notification(post, options = {})
click to toggle source
# File lib/offsite_payments/integrations/paydollar.rb, line 38 def self.notification(post, options = {}) Notification.new(post, options) end
return(query_string, options = {})
click to toggle source
# File lib/offsite_payments/integrations/paydollar.rb, line 42 def self.return(query_string, options = {}) Return.new(query_string, options) end
service_url()
click to toggle source
# File lib/offsite_payments/integrations/paydollar.rb, line 27 def self.service_url case OffsitePayments.mode when :production 'https://www.paydollar.com/b2c2/eng/payment/payForm.jsp' when :test 'https://test.paydollar.com/b2cDemo/eng/payment/payForm.jsp' else raise StandardError, "Integration mode set to an invalid value: #{mode}" end end
sign(fields, secret)
click to toggle source
# File lib/offsite_payments/integrations/paydollar.rb, line 46 def self.sign(fields, secret) Digest::SHA1.hexdigest(fields.push(secret).join('|')) end