This library provides a Ruby client to connect with the PayPro API.
- Ruby >= 2.4.0
Installation is pretty standard:
$ gem install paypro
if you'd rather install the PayPro client 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'
Example of creating a payment:
require 'paypro'
client = PayPro::Client.new('YOUR_API_KEY')
client.command = 'create_payment';
client.params = { amount: 500, consumer_email: 'test@paypro.nl', pay_method: 'ideal/INGBNL2A' }
client.execute
For guides and code examples you can go to https://www.paypro.nl/developers/docs.
If you want to contribute to this project you can fork the repository. Create a new branch, add your feature and create a pull request. We will look at your request and determine if we want to add it.