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
$errorMessage read-only
public
string|null
$errorMessage
= null
$redirectUrl read-only
public
string|null
$redirectUrl
= null
$renderData read-only
public
array<string|int, mixed>
$renderData
= []
$renderMethod read-only
public
string|null
$renderMethod
= null
$success read-only
public
bool
$success
= true
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
selfredirect()
public
static redirect(string $url) : self
Parameters
- $url : string
Return values
selfrender()
public
static render(string $method[, array<string|int, mixed> $data = [] ]) : self
Parameters
- $method : string
- $data : array<string|int, mixed> = []
Return values
selftoArray()
public
toArray() : array<string, array<string|int, mixed>|bool|string|null>