Documentation

Payer extends UbexPayModel

Class Payer

Table of Contents

$paymentMethod  : string
$prop  : array<string|int, mixed>
__construct()  : mixed
Set class properties and methods
execute()  : mixed
Makes the API request
getPaymentMethod()  : string
setPaymentMethod()  : Payment
Valid Values: ["paymoney"] method will be like paymoney, paypal, stripe etc

Properties

$paymentMethod

public string $paymentMethod

$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

getPaymentMethod()

public getPaymentMethod() : string
Return values
string

Pyament method

setPaymentMethod()

Valid Values: ["paymoney"] method will be like paymoney, paypal, stripe etc

public setPaymentMethod(string $method) : Payment
Parameters
$method : string

Payment Method

Return values
Payment

Payment object

Search results