Documentation

PaymentClearanceCommandResponseHandler extends ResponseHandlerAbstract

Class PaymentClearanceCommandResponseHandler

Handles the response received after a "payment clearance" command and ensures it contains all required fields.

Table of Contents

Methods

handle()  : ResponseDataContract
Handle the JSON response after an initialization command.
getResponseDataClass()  : ResponseDataContract
Get the response data class for the "status" command.
getResponseFields()  : array<string|int, mixed>|array<string|int, string>
Get required response fields.
check()  : void
Check if all required fields are present in the response.
decode()  : object
Decode the JSON response string into an object.

Methods

getResponseFields()

Get required response fields.

protected getResponseFields() : array<string|int, mixed>|array<string|int, string>
Return values
array<string|int, mixed>|array<string|int, string>

decode()

Decode the JSON response string into an object.

private decode(string $json) : object
Parameters
$json : string

The JSON response string.

Tags
throws
ResponseHandlerJsonDecodeException

If JSON decoding fails.

Return values
object

The decoded JSON response as an object.


        
On this page

Search results