Skip to content

Commit

Permalink
Update module for new XSD (2020-12-08): set cryptoType to SHA-512; up…
Browse files Browse the repository at this point in the history
…date example
  • Loading branch information
pzs committed Dec 12, 2020
1 parent 924dee1 commit adc1987
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/manageInvoice_electronic_invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// Számla, ahol completenessIndicator=true. Ilyenkor a nav-invoice-modul automatikusan számolja a hash-t,
// így azt nem kell átadni a 3. paraméterben. A számolt hash hozzáadás után lekérhető.

$invoices->add(simplexml_load_file(TEST_DATA_DIR . "invoice1.xml"));
$invoices->add(simplexml_load_file(TEST_DATA_DIR . "invoice1_complete.xml"));

$electronicInvoiceHash = $invoices->getLastInvoiceHash();
var_dump($electronicInvoiceHash);
Expand Down
2 changes: 1 addition & 1 deletion src/NavOnlineInvoice/BaseRequestXml.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected function addUser() {
$signature = $this->getRequestSignatureHash();

$user->addChild("login", $this->config->user["login"]);
$user->addChild("passwordHash", $passwordHash)->addAttribute("cryptoType", "SHA2-512");
$user->addChild("passwordHash", $passwordHash)->addAttribute("cryptoType", "SHA-512");
$user->addChild("taxNumber", $this->config->user["taxNumber"]);
$user->addChild("requestSignature", $signature)->addAttribute("cryptoType", "SHA3-512");
}
Expand Down

0 comments on commit adc1987

Please sign in to comment.