Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ $invoice->setSystemInfo($computerSystem);
// Set other required fields
$invoice->recordTimestamp = '2024-07-01T12:00:00+02:00'; // Date and time with timezone
$invoice->hashType = HashType::SHA_256;
$invoice->hash = '1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'; // Calculated hash
$invoice->hash = HashGeneratorService::generate($invoice); // Calculate hash

// Optional fields
$invoice->operationDate = '2024-07-01'; // Operation date
Expand Down Expand Up @@ -666,7 +666,7 @@ more advanced use cases.
use eseperio\verifactu\services\HashGeneratorService;

// Calculate hash for an invoice
$hash = HashGeneratorService::generateHash($invoice);
$hash = HashGeneratorService::generate($invoice);
$invoice->hash = $hash;
```

Expand Down