diff --git a/examples/manageInvoice_electronic_invoice.php b/examples/manageInvoice_electronic_invoice.php index 6b2c5d9..8a5daf2 100644 --- a/examples/manageInvoice_electronic_invoice.php +++ b/examples/manageInvoice_electronic_invoice.php @@ -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); diff --git a/src/NavOnlineInvoice/BaseRequestXml.php b/src/NavOnlineInvoice/BaseRequestXml.php index 5017bea..7e5d4c4 100644 --- a/src/NavOnlineInvoice/BaseRequestXml.php +++ b/src/NavOnlineInvoice/BaseRequestXml.php @@ -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"); }