{"id":19724158,"url":"https://github.com/fastruby/bitpagos","last_synced_at":"2025-02-27T18:48:08.621Z","repository":{"id":62554302,"uuid":"48542396","full_name":"fastruby/bitpagos","owner":"fastruby","description":"Ruby wrapper for the Bitpagos payment processing API","archived":false,"fork":false,"pushed_at":"2016-01-22T20:29:27.000Z","size":47,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-02-01T07:42:52.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fastruby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-24T12:45:53.000Z","updated_at":"2020-09-20T03:01:43.000Z","dependencies_parsed_at":"2022-11-03T05:00:28.270Z","dependency_job_id":null,"html_url":"https://github.com/fastruby/bitpagos","commit_stats":null,"previous_names":["ombulabs/bitpagos"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastruby%2Fbitpagos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastruby%2Fbitpagos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastruby%2Fbitpagos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastruby%2Fbitpagos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fastruby","download_url":"https://codeload.github.com/fastruby/bitpagos/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241045607,"owners_count":19899682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T23:24:42.626Z","updated_at":"2025-02-27T18:48:08.584Z","avatar_url":"https://github.com/fastruby.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitpagos API\n\nRuby wrapper for the [Bitpagos](https://www.bitpagos.com) Payments API\n\n[![Gem Version](https://badge.fury.io/rb/bitpagos.svg)](http://badge.fury.io/rb/bitpagos)\n[![Build Status](https://travis-ci.org/ombulabs/bitpagos.svg?branch=master)](https://travis-ci.org/ombulabs/bitpagos)\n[![Code Climate](https://codeclimate.com/github/ombulabs/bitpagos/badges/gpa.svg)](https://codeclimate.com/github/ombulabs/bitpagos)\n\n## Getting Started\n\nFor command line usage:\n\n```bash\n$ gem install bitpagos\n```\n\nIf you intend to use it within an application, add `gem \"bitpagos\"` to your\n`Gemfile`.\n\n## Usage\n\nAfter installing the gem, you need to obtain your Bitpagos API key from their\nwebsite, in your control panel, [here](https://www.bitpagos.com/api/settings).\n\nInitialize a Bitpagos client by running:\n\n```ruby\nyour_api_key = \"ABCDEFG123456789\"\nclient = Bitpagos::Client.new(your_api_key)\n```\n\nTo get a transaction by its id:\n\n```ruby\nclient.get_transaction(\"12345\")\n```\n\nTo get only the completed or waiting transactions:\n\n```ruby\nresult = client.completed_transactions\n\nresult = client.waiting_transactions\n```\n\nYou can also use the `#transactions` method like this:\n\n```ruby\nresult = client.transactions(status: :completed)\n\nresult = client.transactions(status: :waiting)\n```\n\nPagination is available by providing limit and offset:\n\n```ruby\nresult = client.transactions(status: :completed, limit: 20, offset: 60)\n```\n\n## Contributing \u0026 Development\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Write your feature (and tests)\n4. Run tests (`bundle exec rake`)\n5. Commit your changes (`git commit -am 'Added some feature'`)\n6. Push to the branch (`git push origin my-new-feature`)\n7. Create new Pull Request\n\n## Release the Gem\n\n```bash\n$ bundle exec rake release\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastruby%2Fbitpagos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffastruby%2Fbitpagos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastruby%2Fbitpagos/lists"}