Ruby client for the Riskified API using Faraday. Ruby > 2.0 is required.
Add this line to your application's Gemfile:
$ gem 'riskified_ruby', github: 'fcpeuro/riskified_ruby'
Credentials must be configured before you make API calls using the gem.
Riskified.configure do |config|
config.auth_token = 'rw342fdj534'
config.default_referrer = 'www.example.com'
config.sandbox_mode = true
end
config.auth_token
- your Riskified access keyconfig.default_referrer
- Default referrerconfig.sandbox_mode
- Decide whether or not to use the sandbox endpoint
The keys are available to you throughout your application as:
Riskified.configuration.auth_token
Riskified.configuration.default_referrer
Riskified.configuration.sandbox_mode
client = Riskified::Client.new
client.checkout_create(order)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request