StripeWebhooksListener extends AbstractWebhooksListener
in package

Tags
since
1.5.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'
$api  : StripeAPI
$gateway  : StripePaymentGateway
$lastEventHasPaymentIntent  : bool
$lastEventObjectType  : string
$lastEventType  : string
__construct()  : mixed
addListeners()  : mixed
findPayment()  : Payment|null
getWebhookUrl()  : string
handleRequest()  : mixed
isCurrentListenerRequest()  : bool
parseInput()  : string|false
processEvent()  : mixed
validateInput()  : stdClass|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

$api

public StripeAPI $api = null
Tags
since
1.5.0

$gateway

public StripePaymentGateway $gateway = null
Tags
since
1.5.0

$lastEventHasPaymentIntent

public bool $lastEventHasPaymentIntent = false
Tags
since
1.5.0

$lastEventObjectType

public string $lastEventObjectType = ''
Tags
since
1.5.0
example

'source'

$lastEventType

public string $lastEventType = ''
Tags
since
1.5.0
example

'source.chargeable'

Methods

addListeners()

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

findPayment()

public findPayment(stdClass $eventObject) : Payment|null
Parameters
$eventObject : stdClass
Tags
since
1.5.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.5.0
Return values
string|false

processEvent()

public processEvent(Payment $payment, stdClass $eventObject) : mixed
Parameters
$payment : Payment
$eventObject : stdClass
Tags
since
1.5.0
Return values
mixed

validateInput()

public validateInput(string $rawInput) : stdClass|false
Parameters
$rawInput : string
Tags
since
1.5.0
Return values
stdClass|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