Project

bitpagos

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby wrapper for the Bitpagos payment processing API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 10.4
~> 3.3
~> 2.9
~> 1.21

Runtime

 Project Readme

Bitpagos API

Ruby wrapper for the Bitpagos Payments API

Gem Version Build Status Code Climate

Getting Started

For command line usage:

$ gem install bitpagos

If you intend to use it within an application, add gem "bitpagos" to your Gemfile.

Usage

After installing the gem, you need to obtain your Bitpagos API key from their website, in your control panel, here.

Initialize a Bitpagos client by running:

your_api_key = "ABCDEFG123456789"
client = Bitpagos::Client.new(your_api_key)

To get a transaction by its id:

client.get_transaction("12345")

To get only the completed or waiting transactions:

result = client.completed_transactions

result = client.waiting_transactions

You can also use the #transactions method like this:

result = client.transactions(status: :completed)

result = client.transactions(status: :waiting)

Pagination is available by providing limit and offset:

result = client.transactions(status: :completed, limit: 20, offset: 60)

Contributing & Development

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Write your feature (and tests)
  4. Run tests (bundle exec rake)
  5. Commit your changes (git commit -am 'Added some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request

Release the Gem

$ bundle exec rake release