Skip to content

WebhookEventInterface

Source: view src/Contracts/WebhookEventInterface.php

Generated from the public PHP contract and its PHPDoc. Driver support varies; check instanceof or GatewayCapabilities before calling optional gateway capabilities.

getEventType

Get the event type

public function getEventType(): string;

getData

Get the event data

public function getData(): array;

getGateway

Get the gateway that triggered the event

public function getGateway(): string;

getRawPayload

Get the raw payload

public function getRawPayload(): array;

getTimestamp

Get the event timestamp

public function getTimestamp(): \DateTime;

isValid

Check if the event is valid

public function isValid(): bool;