{"repo":"nikita-vanyasin/tinkoff","free":true,"listed":false,"github":"https://github.com/nikita-vanyasin/tinkoff","clone":"git clone https://github.com/nikita-vanyasin/tinkoff.git","description":"Golang client for Tinkoff Acquiring API (v2)","language":"Go","stars":37,"topics":["golang","go","tinkoff","tinkoff-payment","tinkoff-bank","acquiring","api","api-client"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"Golang Tinkoff Acquiring API (v2) client The package allows to send token-signed requests to Tinkoff Acquiring API and parse incoming HTTP notifications. Acquiring API Docs: https://www.tinkoff.ru/kassa/dev/payments/ Contents - Installation - Usage - Create client - Handle HTTP notification - Create payment - Cancel or refund payment - Get payment state - Resend notifications - Confirm two-step payment - Helper functions - References - Contribution Installation Usage Automatically generated documentation can be found here. Some examples of usage can be found in test.go files. Create client Provide terminal key and password from terminal settings page. Handle HTTP notification Example using gin: Create payment Create QR Cancel or refund payment Get payment state Confirm two-step payment Resend notifications Helper functions client.PostRequest allows you to implement API requests which are not implemented in this package yet (e.g. when Tinkoff Bank adds new method to API). Use BaseRequest type to implement any API request: References The code in this repo based on some code from koorgoo/tinkoff. Differences: - Support for API v2 - 'reflect' package is not used. Zero dependencies. - No additional error wrapping Contribution All contributions are welcome! There are plenty of API methods that are not implemented yet due to their rare use-cases: - FinishAuthorize - Submit3DSAuthorization - Charge - AddCustomer / GetCustomer / RemoveCustomer - GetCardList / RemoveCard","default_branch":null,"files":null,"tree":[],"storefront":"/r/nikita-vanyasin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nikita-vanyasin/tinkoff/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}