Documentation

ISRequestElement extends ISGenericXml
in package

Class ISRequestElement

This class handles the request elements for the Redsys API. It extends the ISGenericXml class and provides various methods to set and get the request parameters.

Table of Contents

Properties

$datos_entrada  : ISOperationMessage|null
Operation message data.
$datos_entrada_b64  : string|null
Base64 encoded merchant parameters.
$signature  : string|null
Signature of the request.
$signature_version  : string|null
Signature version used for the request.

Methods

__construct()  : mixed
ISRequestElement constructor.
__toString()  : string
Convert the object to a string representation.
get_datos_entrada()  : ISOperationMessage|null
Get the operation message data.
get_datos_entrada_b64()  : string|null
Get the base64 encoded merchant parameters.
get_signature()  : string|null
Get the signature.
get_signature_version()  : string|null
Get the signature version.
get_tag_content()  : string|null
Get the content of a specific XML tag.
parse_json()  : mixed
Parse JSON content and populate the object properties.
parse_xml()  : mixed
Parse XML content and populate the object properties.
set_datos_entrada()  : $this
Set the operation message data.
set_datos_entrada_b64()  : $this
Set the base64 encoded merchant parameters.
set_signature()  : $this
Set the signature.
set_signature_version()  : $this
Set the signature version.
to_json()  : string
Convert the object to JSON format.
to_json_with_array()  : array<string|int, mixed>
Convert the object to an associative array for JSON encoding.
to_xml()  : string
Convert the object to XML format.
get_property_value()  : mixed
Get the value of a property.
set_property_value()  : mixed
Set the value of a property.

Properties

$datos_entrada_b64

Base64 encoded merchant parameters.

private string|null $datos_entrada_b64 = \null

$signature_version

Signature version used for the request.

private string|null $signature_version = \null

Methods

__construct()

ISRequestElement constructor.

public __construct() : mixed

Initializes the signature version to the default value from ISConstants.

__toString()

Convert the object to a string representation.

public __toString() : string
Return values
string

The string representation of the object.

get_datos_entrada()

Get the operation message data.

public get_datos_entrada() : ISOperationMessage|null
Return values
ISOperationMessage|null

The operation message data.

get_datos_entrada_b64()

Get the base64 encoded merchant parameters.

public get_datos_entrada_b64() : string|null
Return values
string|null

The base64 encoded merchant parameters.

get_signature()

Get the signature.

public get_signature() : string|null
Return values
string|null

The signature.

get_signature_version()

Get the signature version.

public get_signature_version() : string|null
Return values
string|null

The signature version.

get_tag_content()

Get the content of a specific XML tag.

public get_tag_content(string $tag, string $xml) : string|null
Parameters
$tag : string

The tag name.

$xml : string

The XML content.

Return values
string|null

The content of the tag or null if not found.

parse_json()

Parse JSON content and populate the object properties.

public parse_json(string $json) : mixed
Parameters
$json : string

The JSON content.

parse_xml()

Parse XML content and populate the object properties.

public parse_xml(string $xml) : mixed
Parameters
$xml : string

The XML content.

set_datos_entrada()

Set the operation message data.

public set_datos_entrada(ISOperationMessage $datos_entrada) : $this
Parameters
$datos_entrada : ISOperationMessage

The operation message data.

Return values
$this

set_datos_entrada_b64()

Set the base64 encoded merchant parameters.

public set_datos_entrada_b64(string $datos_entrada_b64) : $this
Parameters
$datos_entrada_b64 : string

The base64 encoded merchant parameters.

Return values
$this

set_signature()

Set the signature.

public set_signature(string $signature) : $this
Parameters
$signature : string

The signature.

Return values
$this

set_signature_version()

Set the signature version.

public set_signature_version(string $signature_version) : $this
Parameters
$signature_version : string

The signature version.

Return values
$this

to_json()

Convert the object to JSON format.

public to_json() : string
Return values
string

The JSON representation of the object.

to_json_with_array()

Convert the object to an associative array for JSON encoding.

public to_json_with_array(array<string|int, mixed> $arr) : array<string|int, mixed>
Parameters
$arr : array<string|int, mixed>

The initial array to populate.

Return values
array<string|int, mixed>

The associative array representation of the object.

to_xml()

Convert the object to XML format.

public to_xml() : string
Return values
string

The XML representation of the object.

get_property_value()

Get the value of a property.

private get_property_value(ReflectionProperty $prop) : mixed
Parameters
$prop : ReflectionProperty

Property to get.

Return values
mixed

Value of the property.

set_property_value()

Set the value of a property.

private set_property_value(ReflectionProperty $prop, mixed $value) : mixed
Parameters
$prop : ReflectionProperty

Property to set.

$value : mixed

Value to set.


        
On this page

Search results