Ruby client for the Riskified API using Typhoeus. Ruby 2.1 or newer is required.
The gem's declared minimum remains Ruby 2.1. The Ruby core team currently maintains MRI 3.3 (security maintenance), 3.4, and 4.0; those versions are covered by CI. Older Ruby branches are end-of-life and are not tested in CI.
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
endconfig.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_modeclient = 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
Install dependencies with bundle install, then run:
bundle exec rake
bundle exec standardrb
bundle exec brakeman --force --no-pagerCI runs the test suite on each currently maintained Ruby branch and runs StandardRB and Brakeman.