-
Notifications
You must be signed in to change notification settings - Fork 4
Initializing the SDK
Albert Mata edited this page Sep 28, 2016
·
11 revisions
To start using the SDK you need to configure the Judopay gem by passing a block.
You can authenticate either with basic authentication by passing your login and password credentials or using an existing OAuth2 access token.
Judopay.configure do |config|
config.judo_id = 12345
config.api_token = 'your-token'
config.api_secret = 'your-secret'
# Set to true on production, defaults to false which is the sandbox
config.use_production = false
endJudopay.configure do |config|
config.judo_id = 12345
config.api_token = 'your-token'
config.api_secret = 'your-secret'
config.oauth_access_token = 'your-oauth-token'
endAfter that you are ready to start using our system.