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 68 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 72 def self.return(query_string, options = {}) Return.new(query_string, options) end
service_url()
click to toggle source
change url
# File lib/offsite_payments/integrations/paydollar.rb, line 57 def self.service_url case OffsitePayments.mode when :production 'https://www.paydollar.com/b2c2/eng/payment/payShopify.jsp' when :test 'https://test.paydollar.com/b2cDemo/eng/payment/payShopify.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 76 def self.sign(fields, secret) Digest::SHA1.hexdigest(fields.push(secret).join('|')) end