Documentation

RedirectUrls extends UbexPayModel

RedirectUrls Class

Table of Contents

$cancelUrl  : string
$prop  : array<string|int, mixed>
$successUrl  : string
__construct()  : mixed
Set class properties and methods
execute()  : mixed
Makes the API request
getCancelUrl()  : string
Get the Cancel URL
getSuccessUrl()  : string
Get the Success URL
setCancelUrl()  : RedirectUrls
Sets cancel link
setSuccessUrl()  : RedirectUrls
Sets success link

Properties

$cancelUrl

public string $cancelUrl

The URL to redirect after failed payment

$prop

public array<string|int, mixed> $prop

Class properties

$successUrl

public string $successUrl

The URL to redirect after successful payment

Methods

__construct()

Set class properties and methods

public __construct([array<string|int, mixed>|null $data = null ]) : mixed
Parameters
$data : array<string|int, mixed>|null = null

data

Return values
mixed

execute()

Makes the API request

public execute(string $url, string $method, mixed $payload[, mixed $headers = null ]) : mixed
Parameters
$url : string

Request url

$method : string

Request method POST or GET

$payload : mixed

Request Body

$headers : mixed = null
Return values
mixed

Server response

getCancelUrl()

Get the Cancel URL

public getCancelUrl() : string
Return values
string

$cancelUrl The cancel URL

getSuccessUrl()

Get the Success URL

public getSuccessUrl() : string
Return values
string

$successUrl The success URL

Search results