{"id":22457672,"url":"https://github.com/dankimio/tinkoff","last_synced_at":"2026-03-02T06:32:44.692Z","repository":{"id":12563883,"uuid":"72239803","full_name":"dankimio/tinkoff","owner":"dankimio","description":"Ruby wrapper for Tinkoff Payments API","archived":false,"fork":false,"pushed_at":"2022-07-11T06:13:11.000Z","size":24,"stargazers_count":14,"open_issues_count":2,"forks_count":18,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-01T23:44:56.928Z","etag":null,"topics":["payment","ruby","ruby-wrapper","tinkoff"],"latest_commit_sha":null,"homepage":"","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/dankimio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-28T20:28:28.000Z","updated_at":"2022-12-09T03:44:04.000Z","dependencies_parsed_at":"2022-09-15T16:40:15.003Z","dependency_job_id":null,"html_url":"https://github.com/dankimio/tinkoff","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/dankimio/tinkoff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankimio%2Ftinkoff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankimio%2Ftinkoff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankimio%2Ftinkoff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankimio%2Ftinkoff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dankimio","download_url":"https://codeload.github.com/dankimio/tinkoff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dankimio%2Ftinkoff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29994138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["payment","ruby","ruby-wrapper","tinkoff"],"created_at":"2024-12-06T08:09:02.884Z","updated_at":"2026-03-02T06:32:44.658Z","avatar_url":"https://github.com/dankimio.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tinkoff\n\n[![Build Status](https://img.shields.io/travis/dankimio/tinkoff.svg?style=flat)](https://travis-ci.org/dankimio/tinkoff)\n[![Gem Version](https://img.shields.io/gem/v/tinkoff.svg?style=flat\u0026color=brightgreen)](https://rubygems.org/gems/tinkoff)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://raw.githubusercontent.com/dankimio/tinkoff/master/LICENSE.txt)\n\n\nThis is a Ruby wrapper for Tinkoff Acquiring API. The API of this gem is not final and may change significantly before the 1.0 release.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'tinkoff'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install tinkoff\n\n## Usage\n\nConfigure the gem with the credentials provided by the bank. If you are using Ruby on Rails, you should do that in an initializer.\n\n```ruby\n# config/initializers/tinkoff.rb\nTinkoff.configure do |config|\n  config.terminal_key = 'TerminalKey'\n  config.password = 'Password'\nend\n```\n\nUse the client to work with payments.\n\n```ruby\n# Parameters: amount (in kopecks), order_id, data, options (hash, optional)\n# data — a hash of arbitrary data (up to 20 pairs), \"Email\" key is required\n# More info: https://www.tinkoff.ru/kassa/develop/api/payments/init-description/\nTinkoff::Client.init(100, 1, { Email: 'foo@bar.com' })\n\n# Parameters: payment_id, options (hash, optional)\nTinkoff::Client.confirm(1)\n\n# Parameters: payment_id, rebill_id, options (hash, optional)\nTinkoff::Client.charge(1, 2)\n\n# Parameters: payment_id, options (hash, optional)\nTinkoff::Client.cancel(1)\n\n# Parameters: payment_id, options (hash, optional)\nTinkoff::Client.state(1)\n```\n\nYou can view all available options in the [official documentation](https://www.tinkoff.ru/kassa/develop/api/payments/).\n\nA notification will be sent to if you provided the URL. You should use it to update the status of your payment / order.\n\n```ruby\nnotification = Tinkoff::Notification.new(params)\norder = Order.find(notification.order_id)\norder.update_attribute(:paid, true)\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. To install this gem onto your local machine, run `bundle exec rake install`.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/dankimio/tinkoff. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdankimio%2Ftinkoff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdankimio%2Ftinkoff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdankimio%2Ftinkoff/lists"}