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.
chci se jen ujistit. Kde v tomhle ukazkovém kódu mam dávat DIC kupujícího(nebo ten tam nemusí být)?
$crypto = new CryptographyService('cesta k privátnímu klíči', 'cesta k veřejnému klíči', 'heslo privátního klíče (nebo prázdný string pokud bez hesla)');
$configuration = new Configuration(
'DIČ poplatníka',
'Identifikace provozovny ',
'Identifikace pokladního zařízení',
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',
'0/6460/ZQ42',
new \DateTimeImmutable('2016-11-01 00:30:12'),
3411300
);
try {
$response = $client->send($receipt);
echo $response->getFik();
} catch (\SlevomatEET\FailedRequestException $e) {
echo $e->getRequest()->getPkpCode(); // if request fails you need to print the PKP and BKP codes to receipt
} catch (\SlevomatEET\InvalidResponseReceivedException $e) {
echo $e->getResponse()->getRequest()->getPkpCode(); // on invalid response you need to print the PKP and BKP too
}
Díky
The text was updated successfully, but these errors were encountered:
Dobrý den,
chci se jen ujistit. Kde v tomhle ukazkovém kódu mam dávat DIC kupujícího(nebo ten tam nemusí být)?
Díky
The text was updated successfully, but these errors were encountered: