WebhookListener
extends AbstractNotificationListener
in package
Table of Contents
- $gatewayId : string
- $input : array<string|int, mixed>
- $isSandbox : bool
- $payment : Payment
- $urlKey : string
- $urlValue : string
- $payments : array<string|int, mixed>
- $validNotification : WebhookNotification
- __construct() : mixed
- checkRequest() : mixed
- fireExit() : mixed
- getNotifyUrl() : string
- initUrlIdentificationValue() : string
- parseInput() : array<string|int, mixed>
- paymentCompleted() : mixed
- paymentFailed() : mixed
- paymentOnHold() : mixed
- paymentRefunded() : mixed
- process() : mixed
- retrievePayment() : Payment|null
- validate() : bool
- paymentLog() : mixed
- retrievePayments() : mixed
Properties
$gatewayId
protected
string
$gatewayId
= ''
$input
protected
array<string|int, mixed>
$input
$isSandbox
protected
bool
$isSandbox
= false
$payment
protected
Payment
$payment
$urlKey
protected
string
$urlKey
= 'mphb-listener'
$urlValue
protected
string
$urlValue
= ''
$payments
private
array<string|int, mixed>
$payments
$validNotification
private
WebhookNotification
$validNotification
Methods
__construct()
public
__construct([mixed $args = array() ]) : mixed
Parameters
- $args : mixed = array()
Return values
mixed —checkRequest()
public
checkRequest() : mixed
Tags
Return values
mixed —fireExit()
public
fireExit(bool $succeed) : mixed
Parameters
- $succeed : bool
Tags
Return values
mixed —getNotifyUrl()
public
getNotifyUrl() : string
Return values
string —initUrlIdentificationValue()
protected
initUrlIdentificationValue() : string
Return values
string —parseInput()
protected
parseInput() : array<string|int, mixed>
Return values
array<string|int, mixed> —paymentCompleted()
protected
paymentCompleted(mixed $log) : mixed
Parameters
- $log : mixed
Return values
mixed —paymentFailed()
protected
paymentFailed(mixed $log) : mixed
Parameters
- $log : mixed
Return values
mixed —paymentOnHold()
protected
paymentOnHold(mixed $log) : mixed
Parameters
- $log : mixed
Return values
mixed —paymentRefunded()
protected
paymentRefunded(mixed $log) : mixed
Parameters
- $log : mixed
Return values
mixed —process()
protected
process() : mixed
Return values
mixed —retrievePayment()
protected
retrievePayment() : Payment|null
Return values
Payment|null —validate()
protected
validate(mixed $input) : bool
Parameters
- $input : mixed
Return values
bool —paymentLog()
private
paymentLog(mixed $log) : mixed
Parameters
- $log : mixed
Return values
mixed —retrievePayments()
private
retrievePayments(array<string|int, mixed> $transactionIds) : mixed
Parameters
- $transactionIds : array<string|int, mixed>