PHPackages                             goldcarrot/tinkoff-cashier - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. goldcarrot/tinkoff-cashier

ActiveLibrary[API Development](/categories/api)

goldcarrot/tinkoff-cashier
==========================

Tinkoff merchant API

1.0(4y ago)267MITPHPPHP &gt;=7.4

Since Oct 28Pushed 4y ago3 watchersCompare

[ Source](https://github.com/GoldCarrot/tinkoff-cashier)[ Packagist](https://packagist.org/packages/goldcarrot/tinkoff-cashier)[ RSS](/packages/goldcarrot-tinkoff-cashier/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Tinkoff Cashier
===============

[](#tinkoff-cashier)

PHP implementation of [Tinkoff Merchant API v2](https://www.tinkoff.ru/kassa/develop/).

Installation
------------

[](#installation)

```
composer require goldcarrot/tinkoff-cashier

```

How to use
----------

[](#how-to-use)

```
use GuzzleHttp\Client;
use Goldcarrot\Cashiers\Tinkoff\Tinkoff;

$client = new Client();
$terminalKey = 'your-terminal-key';
$password = 'your-password';

$bankApi = new Tinkoff($client, $terminalKey, $password);
```

Creating a payment
------------------

[](#creating-a-payment)

```
use Goldcarrot\Cashiers\Tinkoff\Values\Init;

$orderId = 'your-order-id';
$data = new Init($orderId);
$data
    ->setAmount(1000)
    ->setSuccessURL("https://site.com/invoice/$orderId/success");

$response = $bankApi->init($data);

$paymentId = $response->getPaymentId();

redirect($response->getPaymentURL());
```

Checking payment
----------------

[](#checking-payment)

```
use Goldcarrot\Cashiers\Tinkoff\Values\GetState;
use Goldcarrot\Cashiers\Tinkoff\Enums\PaymentStatus;

$data = GetState::make($paymentId);

$response = $bankApi->getState($data);

if ($response->getStatus() === PaymentStatus::CONFIRMED) {
    // after success actions
} else {
    // after failure actions
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1658d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c38e5e8a3bb84f5af5ba4ac409c9401d11bf86953a259635fa090a8a732a790?d=identicon)[goldcarrot](/maintainers/goldcarrot)

---

Top Contributors

[![ts-goldcarrot](https://avatars.githubusercontent.com/u/75744949?v=4)](https://github.com/ts-goldcarrot "ts-goldcarrot (6 commits)")

### Embed Badge

![Health badge](/badges/goldcarrot-tinkoff-cashier/health.svg)

```
[![Health](https://phpackages.com/badges/goldcarrot-tinkoff-cashier/health.svg)](https://phpackages.com/packages/goldcarrot-tinkoff-cashier)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
