PayPro provides a Ruby client that you can use to connect with the PayPro API. The client is opensource and the source code can be found on GitHub.
The installation of the Ruby client goes through a Gem.
You can install the PayPro client as a gem directly.
1 $ gem install paypro
If you are using Bundler you can put this in your Gemfile.
1 2 3 source 'https://rubygems.org' gem 'paypro'
Or directly from the Github repository
1 gem 'paypro', git: 'https://github.com/paypronl/paypro-ruby-v1'
Then run Bundler like this:
1 $ bundle install
In order to use the PayPro client put this on top of your file.
1 require 'paypro'
You should now be able to create a
PayPro::Client object in your code.
1 client = PayPro::Client.new('API_KEY')
You can now use this client object to create API calls to the PayPro API.