1 Ruby Library
Payment RailsThe Payment Rails Ruby library provides integration access to the Payment Rails API.
Requirements
Ruby version >= 2.4 is required. Bundler is required.
Installation & Usage (RubyGem)
Install the Gem
gem install paymentrails
Installation & Usage (Git)
Clone the SDK
git clone https://github.com/PaymentRails/ruby-sdk.git
Build & Install the gem
cd ruby-sdk
bundler install
gem build paymentrails.gemspec
gem install paymentrails-[version].gem
Getting Started
require 'paymentrails'
client = PaymentRails.client('YOUR-API-KEY', 'YOUR-SECRET-KEY')
recipient = client.recipient.find('R-1234567abcdefg')
print recipient.id
Need a proxy?
client = PaymentRails.client('YOUR-API-KEY', 'YOUR-SECRET-KEY', 'production', proxy_uri: 'peter_the_proxy.com')
Documentation for API Endpoints
All URIs are available at http://docs.trolley.com/
Footnotes
-
Payment Rails is now Trolley, we'll be updating our SDKs to support the new domain during the second half of 2022. โฉ