Vraag? Stuur ons een bericht

+31 6 26 52 78 57

Wij verwerken online betalingen sinds 2006

Ruby

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.

Installation

The installation of the Ruby client goes through a Gem.

Gem

You can install the PayPro client as a gem directly.

 $ gem install paypro

Bundler

If you are using Bundler you can put this in your Gemfile.

source 'https://rubygems.org'

gem 'paypro'

Or directly from the Github repository

gem 'paypro', git: 'https://github.com/paypronl/paypro-ruby-v1'

Then run Bundler like this:

  $ bundle install

Usage

In order to use the PayPro client put this on top of your file.

require 'paypro'

You should now be able to create a PayPro::Client object in your code.

client = PayPro::Client.new('API_KEY')

You can now use this client object to create API calls to the PayPro API.

Payments quickstart

Quickly create payments with the PayPro API

API Reference

API Reference

Support

Would you like additional support or do you have questions? Contact us.