Module: OffsitePayments::Integrations::PayuIn

Defined in:
lib/offsite_payments/integrations/payu_in.rb

Defined Under Namespace

Classes: Helper, Notification, Return

Class Method Summary collapse

Class Method Details

.checksum(merchant_id, secret_key, payload_items) ⇒ Object



22
23
24
# File 'lib/offsite_payments/integrations/payu_in.rb', line 22

def self.checksum(merchant_id, secret_key, payload_items )
  Digest::SHA512.hexdigest([merchant_id, *payload_items, secret_key].join("|"))
end

.notification(post, options = {}) ⇒ Object



14
15
16
# File 'lib/offsite_payments/integrations/payu_in.rb', line 14

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

.return(post, options = {}) ⇒ Object



18
19
20
# File 'lib/offsite_payments/integrations/payu_in.rb', line 18

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

.service_urlObject



10
11
12
# File 'lib/offsite_payments/integrations/payu_in.rb', line 10

def self.service_url
  OffsitePayments.mode == :production ? self.production_url : self.test_url
end