CoolCMS API

GatewayCreateResult
in package

FinalYes

Table of Contents

Constants

ERROR_CREATE_FAILED  : string = 'gatewayCreateFailed'
Stable generic message for a failed transaction creation at the gateway. IMPORTANT: the client exception text is never passed to the public response (it would disclose gateway internals); it goes only to the server log.

Properties

$errorMessage  : string|null
$redirectUrl  : string|null
$renderData  : array<string|int, mixed>
$renderMethod  : string|null
$success  : bool

Methods

__construct()  : mixed
failure()  : self
redirect()  : self
render()  : self
toArray()  : array<string, array<string|int, mixed>|bool|string|null>

Constants

ERROR_CREATE_FAILED

Stable generic message for a failed transaction creation at the gateway. IMPORTANT: the client exception text is never passed to the public response (it would disclose gateway internals); it goes only to the server log.

public string ERROR_CREATE_FAILED = 'gatewayCreateFailed'

Properties

Methods

__construct()

public __construct([string|null $redirectUrl = null ][, string|null $renderMethod = null ][, array<string|int, mixed> $renderData = [] ][, bool $success = true ][, string|null $errorMessage = null ]) : mixed
Parameters
$redirectUrl : string|null = null
$renderMethod : string|null = null
$renderData : array<string|int, mixed> = []
$success : bool = true
$errorMessage : string|null = null

failure()

public static failure(string $message) : self
Parameters
$message : string
Return values
self

redirect()

public static redirect(string $url) : self
Parameters
$url : string
Return values
self

render()

public static render(string $method[, array<string|int, mixed> $data = [] ]) : self
Parameters
$method : string
$data : array<string|int, mixed> = []
Return values
self

toArray()

public toArray() : array<string, array<string|int, mixed>|bool|string|null>
Return values
array<string, array<string|int, mixed>|bool|string|null>
On this page

Search results