You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.
$crypto = new CryptographyService($this->get('kernel')->getRootDir().'/Certificates/private.key', $this->get('kernel')->getRootDir().'/Certificates/public.pub', 'password');
$configuration = new Configuration(
'DIC',
21,
1,
EvidenceEnvironment::get(EvidenceEnvironment::PLAYGROUND), // nebo EvidenceEnvironment::get(EvidenceEnvironment::PRODUCTION) pro komunikaci s produkčním systémem
false // zda zasílat účtenky v ověřovacím módu
);
$client = new Client($crypto, $configuration, new GuzzleSoapClientDriver(new \GuzzleHttp\Client()));
$receipt = new Receipt(
true,
'CZ683555118',
1234,
new \DateTimeImmutable('2016-11-01 00:30:12'),
3411300
);
try {
$response = $client->send($receipt);
$fik = $response->getFik();
$bkp = $response->getBkp();
echo '<br />FIK:'.$fik;
echo '<br />BKP:'.$bkp;
} catch (\SlevomatEET\FailedRequestException $e) {
$pkb = $e->getRequest()->getPkpCode(); // if request fails you need to print the PKP and BKP codes to receipt
} catch (\SlevomatEET\InvalidResponseReceivedException $e) {
echo $e->getMessage();
$pkb = $e->getResponse()->getRequest()->getPkpCode(); // on invalid response you need to print the PKP and BKP too
}
Skočí to na poslední catch.
$e->getMessage();
Invalid response received. Check response data for errors and warnings
The text was updated successfully, but these errors were encountered:
kironet
changed the title
Could not find package slevomat/eet-client at any version matching your PHP version 5.5.9.0
Invalid response received. Check response data for errors and warnings
Mar 5, 2017
Dobrý den,
nedaří se mi zprovoznit vaší knihovnu.
Skočí to na poslední catch.
$e->getMessage();
var_dump($client);
var_dump($receipt);
Vypadá v pohodě.
The text was updated successfully, but these errors were encountered: