Skip to content

Instantly share code, notes, and snippets.

@dtelaroli
Created January 27, 2017 12:48
Show Gist options
  • Save dtelaroli/612808984842f074c6b4e04aad1d9adb to your computer and use it in GitHub Desktop.
Save dtelaroli/612808984842f074c6b4e04aad1d9adb to your computer and use it in GitHub Desktop.
Configurando API Ruby do Pagseguro por environment
PagSeguro.configure do |config|
configuration = Rails.application.config_for(:pagseguro)
config.email = configuration['email']
config.token = configuration['token']
config.environment = configuration['environment']
config.encoding = configuration['encoding']
end
development:
email: 'youremail'
token: 'yourtoken'
environment: :sandbox
encoding: 'UTF-8'
production:
email: 'youremail'
token: 'yourtoken'
environment: :production
encoding: 'UTF-8'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment