WebhooksService/WebhooksService.php
- Package
- Default
\WebhooksService
Package: Default

Constants
Methods


getWebhooksEvent( $payLoad) : object
static
Convert the payLoad of webhook to object
Parameters
Returns
Name | Type | Description |
---|---|---|
$payLoad | The payload to be converted |
Type | Description |
---|---|
object | The deserialization format for the payload |


verifyPayload( $token, $payload, $intuitHeaderSignature) : boolean
static
use Token to verifier the payload is sent from Intuit
Parameters
Returns
Name | Type | Description |
---|---|---|
$token | The webhook Token get from Intuit | |
$payload | The payload for the webhook events | |
$intuitHeaderSignature | The header signature |
Type | Description |
---|---|
boolean | True if it is valid; otherwise return false; |