![License](https://camo.githubusercontent.com/9841431e7da4d8a937f31a8b9cbd8ed729d798c72b7dcb7d8e97c8a33ea08571/68747470733a2f2f706f7365722e707567782e6f72672f7361756e646566696e65642f666e732d726563656970742f6c6963656e7365)
<?php
$user = new FNS\Receipt\Model\User();
$user->setEmail('email@example.com');
$user->setName('John Doe');
$client = new FNS\Receipt\Client('79991234567');
$client->authorization()->signUp($user);
<?php
$client = new FNS\Receipt\Client('79991234567');
$client->authorization()->restore();
<?php
$client = new FNS\Receipt\Client('79991234567');
$client->authorization()->withCode(111111);
<?php
$receipt = new FNS\Receipt\Model\Receipt();
$receipt->setNumber('1112222333444444');
$receipt->setDocument('112233');
$receipt->setTag('1112223333');
$receipt->setType(FNS\Receipt\Model\Receipt::FNS_RECEIPT_TYPE_INCOMING);
$receipt->setDate(new DateTime('01.01.2019 00:00'));
$receipt->setPrice(1000.00);
$client = new FNS\Receipt\Client('79991234567');
if ($client->authorization()->withCode(111111)->isSuccess()) {
$data = $client->receipt($receipt)->exists();
}
Детальная информация о чеке
<?php
$receipt = new FNS\Receipt\Model\Receipt();
$receipt->setNumber('1112222333444444');
$receipt->setDocument('112233');
$receipt->setTag('1112223333');
$receipt->setType(FNS\Receipt\Model\Receipt::FNS_RECEIPT_TYPE_INCOMING);
$receipt->setDate(new DateTime('01.01.2019 00:00'));
$receipt->setPrice(1000.00);
$client = new FNS\Receipt\Client('79991234567');
if ($client->authorization()->withCode(111111)->isSuccess()) {
$data = $client->receipt($receipt)->detail();
}