Module: OffsitePayments::Integrations::PagSeguro

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

Defined Under Namespace

Classes: Helper, Notification

Class Method Summary collapse

Class Method Details

.invoicing_urlObject


28
29
30
# File 'lib/offsite_payments/integrations/pag_seguro.rb', line 28

def self.invoicing_url
  test? ? invoicing_test_url : invoicing_production_url
end

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


36
37
38
# File 'lib/offsite_payments/integrations/pag_seguro.rb', line 36

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

.notification_urlObject


32
33
34
# File 'lib/offsite_payments/integrations/pag_seguro.rb', line 32

def self.notification_url
  test? ? notification_test_url : notification_production_url
end

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


40
41
42
# File 'lib/offsite_payments/integrations/pag_seguro.rb', line 40

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

.service_urlObject


24
25
26
# File 'lib/offsite_payments/integrations/pag_seguro.rb', line 24

def self.service_url
  test? ? service_test_url : service_production_url
end

.test?Boolean


44
45
46
# File 'lib/offsite_payments/integrations/pag_seguro.rb', line 44

def self.test?
  OffsitePayments.mode == :test
end