Created
January 27, 2017 12:48
-
-
Save dtelaroli/612808984842f074c6b4e04aad1d9adb to your computer and use it in GitHub Desktop.
Configurando API Ruby do Pagseguro por environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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