PayPalWebhookListener extends AbstractWebhooksListener
in package

Tags
since
1.6.0

Table of Contents

STATUS_PARSE_ERROR  = 1
STATUS_PROCESSING_ERROR  = 128
STATUS_REPOSITORY_ERROR  = 4
STATUS_SUCCESS  = 0
STATUS_VALIDATION_ERROR  = 2
URL_KEY  = 'mpa-listener'
$gateway  : PaymentGatewayInterface
__construct()  : mixed
addListeners()  : mixed
findPayment()  : Payment|null
getWebhookUrl()  : string
handleRequest()  : mixed
isCurrentListenerRequest()  : bool
parseInput()  : string|false
processEvent()  : mixed
validateInput()  : array<string|int, mixed>|false
fireExit()  : mixed

Constants

STATUS_PARSE_ERROR

public mixed STATUS_PARSE_ERROR = 1
Tags
since
1.5.0

STATUS_PROCESSING_ERROR

public mixed STATUS_PROCESSING_ERROR = 128
Tags
since
1.5.0

STATUS_REPOSITORY_ERROR

public mixed STATUS_REPOSITORY_ERROR = 4
Tags
since
1.5.0

STATUS_SUCCESS

public mixed STATUS_SUCCESS = ""
Tags
since
1.5.0

STATUS_VALIDATION_ERROR

public mixed STATUS_VALIDATION_ERROR = 2
Tags
since
1.5.0

URL_KEY

public mixed URL_KEY = 'mpa-listener'
Tags
since
1.5.0

Properties

$gateway

public PaymentGatewayInterface $gateway = null
Tags
since
1.5.0

Methods

__construct()

public __construct(PayPalPaymentGateway $gateway) : mixed
Parameters
$gateway : PayPalPaymentGateway
Tags
since
1.6.0
Return values
mixed

addListeners()

public addListeners() : mixed
Tags
since
1.5.0
see
StripePaymentGateway::addListeners()
Return values
mixed

findPayment()

public findPayment(array<string|int, mixed> $eventObject) : Payment|null
Parameters
$eventObject : array<string|int, mixed>
Tags
since
1.6.0
Return values
Payment|null

getWebhookUrl()

public getWebhookUrl() : string
Tags
since
1.5.0
Return values
string

handleRequest()

public handleRequest() : mixed
Tags
since
1.5.0
access

protected

Return values
mixed

isCurrentListenerRequest()

public isCurrentListenerRequest() : bool
Tags
since
1.5.0
Return values
bool

parseInput()

public parseInput() : string|false
Tags
since
1.6.0
Return values
string|false

processEvent()

public processEvent(Payment $payment, array<string|int, mixed> $eventObject) : mixed
Parameters
$payment : Payment
$eventObject : array<string|int, mixed>
Tags
since
1.6.0
Return values
mixed

validateInput()

public validateInput(string $rawInput) : array<string|int, mixed>|false
Parameters
$rawInput : string
Tags
since
1.6.0
Return values
array<string|int, mixed>|false

fireExit()

protected fireExit([int $statusCode = self::STATUS_SUCCESS ]) : mixed
Parameters
$statusCode : int = self::STATUS_SUCCESS

Optional. Status code. Success by default (0).

Tags
since
1.5.0
Return values
mixed

Search results