Repository navigation
v1.1.2
New Features
- Added
WebhookPayloadDTO for parsing incoming webhook notifications viaWebhookPayload::fromJson($json) - Added
WebhookErrorDTO withhasError()helper - Added
WebhookEventTypeenum
Usage
$webhook = WebhookPayload::fromJson(file_get_contents('php://input'));
if ($webhook->payment->isSuccessful()) {
// fulfil the order
}
if ($webhook->error?->hasError()) {
// log $webhook->error->description
}What's Changed
Full Changelog: v1.1.1...v1.1.2