generated from vormkracht10/laravel-package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
Here is the test webhook from postmark:
{
"RecordType": "Delivery",
"ServerID": 23,
"MessageStream": "outbound",
"MessageID": "0524eca8-1a94-415b-a673-adb9c9bc533a",
"Recipient": "john@example.com",
"Tag": "welcome-email",
"DeliveredAt": "2025-08-26T14:33:48Z",
"Details": "Test delivery webhook details",
"Metadata": {
"example": "value",
"example_2": "value"
}
}
in the PostmarkDriver it tries to get the UUID from Metadata
:
public function getUuidFromPayload(array $payload): ?string
{
return $payload['Metadata'][$this->uuidHeaderName] ??
$payload['Metadata'][strtolower($this->uuidHeaderName)] ??
$payload['Metadata'][strtoupper($this->uuidHeaderName)] ??
null;
}
But the UUID is provided from the MessageID
field in the payload.
public function getUuidFromPayload(array $payload): ?string
{
return $payload['MessageID'] ??
$this->getUuidFromMetadata($payload);
}
public function getUuidFromMetadata(array $payload): ?string
{
return $payload['Metadata'][$this->uuidHeaderName] ??
$payload['Metadata'][strtolower($this->uuidHeaderName)] ??
$payload['Metadata'][strtoupper($this->uuidHeaderName)] ??
null;
}
Is this only an inconsistency between test webhooks or do we need to fix it?
How to reproduce the bug
When I run the webhook via postmarks test webhook data.
Package Version
2.1.0
PHP Version
8.3.4
Laravel Version
12.21.0
Which operating systems does with happen with?
Windows
Notes
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working