From ec76cea489f1f61aafcdf7212f95e206c4596869 Mon Sep 17 00:00:00 2001 From: Sergey Zatulivetrov Date: Wed, 25 Sep 2019 10:43:19 +0300 Subject: [PATCH] Update README.md --- README.md | 48 ++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 44 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 875fca6..2d041ac 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,57 @@ -# tinkoff-acquiring-client +# Tinkoff acquiring client PHP client for Tinkoff REST API. -## Requirements +## 1 Requirements - PHP 7.1 or above -## Installation +## 2 Installation ```sh composer require 'sergey-zatulivetrov/tinkoff-acquiring-client' ``` -## License +## 3 Uses + +### 3.1 Сonnection definition + +```php +use SergeyZatulivetrov\TinkoffAcquiring\Client; + +$client = new Client(); +``` + +#### 3.1.1 Init connection + +```php +$client->init($data); +``` + +#### 3.1.2 Confirm connection + +```php +$client->confirm($data); +``` + +#### 3.1.3 Cancel connection + +```php +$client->cancel($data); +``` + +#### 3.1.4 GetState connection + +```php +$client->getState($data); +``` + +#### 3.1.5 Resend connection + +```php +$client->resend($data); +``` + +## 4 License Copyright (c) Zatulivetrov Sergey. Distributed under the MIT.