WebhooksService/WebhooksService.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\WebhooksService

Package: Default

Constants

>VConstant  WEBHOOKSWRAPPERNAME = "WebhooksEvent"

Methods

methodpublicgetWebhooksEvent( $payLoad) : object
static

Convert the payLoad of webhook to object

Parameters
NameTypeDescription
$payLoad

The payload to be converted

Returns
TypeDescription
objectThe deserialization format for the payload
methodpublicverifyPayload( $token,  $payload,  $intuitHeaderSignature) : boolean
static

use Token to verifier the payload is sent from Intuit

Parameters
NameTypeDescription
$token

The webhook Token get from Intuit

$payload

The payload for the webhook events

$intuitHeaderSignature

The header signature

Returns
TypeDescription
booleanTrue if it is valid; otherwise return false;
Documentation was generated by phpDocumentor 2.8.5.