Transaction extends UbexPayModel
Class Transaction
Table of Contents
- $amount : Amount
- $prop : array<string|int, mixed>
- __construct() : mixed
- Set class properties and methods
- execute() : mixed
- Makes the API request
- getAmount() : mixed
- setAmount() : Transaction
Properties
$amount
public
Amount
$amount
Transaction amount
$prop
public
array<string|int, mixed>
$prop
Class properties
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
getAmount()
public
getAmount() : mixed
Return values
mixed —setAmount()
public
setAmount(Amount $amount) : Transaction
Parameters
- $amount : Amount
Return values
Transaction —$this