The Judopay gem supports Ruby 1.9.3 and above (including 2.0.x and 2.1.x).
Add this line to your application's Gemfile:
gem 'judopay'
And then execute:
$ bundle
Or install it yourself as:
$ gem install judopay
You configure the Judopay gem by passing a block. For example:
Judopay.configure do |config|
config.judo_id = 12345
end
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'
end
Judopay.configure do |config|
config.judo_id = 12345
config.oauth_access_token = 'your-oauth-token'
end