module PagSeguro
Constants
- VERSION
Attributes
alt_email[RW]
Sencondary e-mail associated with secondary account.
alt_token[RW]
The API token associated with secondary account.
email[RW]
Primary e-mail associated with the primary account.
environment[RW]
The PagSeguro
environment. Only production
for now.
timeout[RW]
Timeout value in seconds for requests.
token[RW]
The API token associated with primary account.
Public Class Methods
api_url(version)
click to toggle source
# File lib/pagseguro.rb, line 56 def api_url(version) uris.fetch(environment) + version end
configure() { |self| ... }
click to toggle source
Set the global configuration.
PagSeguro.configure do |config| config.email = "john@example.com" config.token = "abc" config.environment = :sandbox end
# File lib/pagseguro.rb, line 79 def self.configure(&block) yield self end
Private Class Methods
uris()
click to toggle source
# File lib/pagseguro.rb, line 61 def uris @uris ||= { production: 'https://ws.pagseguro.uol.com.br/', sandbox: 'https://ws.sandbox.pagseguro.uol.com.br/' } end