{"id":20781335,"url":"https://github.com/peterberkenbosch/affirm-ruby-api","last_synced_at":"2025-04-30T21:24:19.269Z","repository":{"id":47755777,"uuid":"250490750","full_name":"peterberkenbosch/affirm-ruby-api","owner":"peterberkenbosch","description":"Affirm Ruby client for integrating with Affirm financing payments using the new Transaction API ","archived":false,"fork":false,"pushed_at":"2021-08-14T13:33:25.000Z","size":78,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-01T14:03:13.250Z","etag":null,"topics":["affirm","affirm-financing","financing","payment-gateway","payment-integration","ruby-client"],"latest_commit_sha":null,"homepage":"https://peterberkenbosch.gitbook.io/affirm-ruby-api/","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/peterberkenbosch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null},"funding":{"github":"peterberkenbosch"}},"created_at":"2020-03-27T09:19:52.000Z","updated_at":"2023-02-07T16:58:59.000Z","dependencies_parsed_at":"2022-07-26T01:02:54.159Z","dependency_job_id":null,"html_url":"https://github.com/peterberkenbosch/affirm-ruby-api","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterberkenbosch%2Faffirm-ruby-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterberkenbosch%2Faffirm-ruby-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterberkenbosch%2Faffirm-ruby-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterberkenbosch%2Faffirm-ruby-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterberkenbosch","download_url":"https://codeload.github.com/peterberkenbosch/affirm-ruby-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251783919,"owners_count":21643177,"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":["affirm","affirm-financing","financing","payment-gateway","payment-integration","ruby-client"],"created_at":"2024-11-17T13:43:35.543Z","updated_at":"2025-04-30T21:24:19.243Z","avatar_url":"https://github.com/peterberkenbosch.png","language":"Ruby","funding_links":["https://github.com/sponsors/peterberkenbosch"],"categories":[],"sub_categories":[],"readme":"# Affirm Ruby API\n\nClean, fast and pure Ruby implementation for the [Affirm API](https://docs.affirm.com/affirm-developers/reference)\n\nThis is using the new Transaction API and is not compatible with the Charge API. Also see the [Affirm Changelog](https://docs.affirm.com/affirm-developers/changelog/transactions-api)\n\n[![Gem Version](https://badge.fury.io/rb/affirm-ruby-api.svg)](https://badge.fury.io/rb/affirm-ruby-api)\n![Tests](https://github.com/peterberkenbosch/affirm-ruby-api/workflows/Tests/badge.svg)\n![StandardRB](https://github.com/peterberkenbosch/affirm-ruby-api/workflows/StandardRB/badge.svg)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'affirm-ruby-api'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install affirm-ruby-api\n\n## Documentation\n\n* [Official documentation](https://peterberkenbosch.gitbook.io/affirm-ruby-api)\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n### Testing support\n\nWhen implementing this gem into your application or other gem, you can reuse the JSON and HTTP payloads and responses. For example with RSpec you can add the following to your `spec_helper.rb` file:\n\n```ruby\nrequire \"affirm/testing_support/http_responses\"\n\nRSpec.configure do |config|\n  config.include Affirm::TestingSupport::HttpResponses\nend\n```\n\nthis will provide you with the `read_http_fixture` and `read_json_fixture` methods. These can be used to mock the responses and payload body's with `WebMock`.\n\nFor details on how to use this, take a look at the usage in the spec files here.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/peterberkenbosch/affirm-ruby-api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/peterberkenbosch/affirm-ruby-api/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Affirm::Ruby::Api project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/peterberkenbosch/affirm-ruby-api/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterberkenbosch%2Faffirm-ruby-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterberkenbosch%2Faffirm-ruby-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterberkenbosch%2Faffirm-ruby-api/lists"}