Payment
in package

Table of Contents

$amount  : float
$bookingId  : int
$currency  : string
$date  : DateTime
$email  : string
$gatewayId  : string
$gatewayMode  : string
$id  : int
$modifiedDate  : DateTime
$status  : string
$transactionId  : string
__construct()  : mixed
addLog()  : mixed
create()  : Payment
deleteExpiration()  : mixed
Delete expiration time of pending confirmation for payment
generateKey()  : string
getAmount()  : float
getBookingId()  : int
getCurrency()  : string
getDate()  : DateTime
getEmail()  : string
getGatewayId()  : string
getGatewayMode()  : string
getId()  : int
getKey()  : string
getLogs()  : array<string|int, mixed>
getModifiedDate()  : DateTime
getStatus()  : string
getTransactionId()  : string
isAuthorized()  : bool
isFinished()  : bool
retrieveExpiration()  : int
Retrieve expiration time of pending confirmation for payment in UTC
setAuthorized()  : mixed
The customer went to the payment page (redirect) and authorized the payment. Used for payment gateways with redirects: Stripe, PayPal, WooCommerce.
setId()  : mixed
setStatus()  : mixed
setTransactionId()  : mixed
updateExpiration()  : mixed
Set expiration time of pending confirmation for payment

Properties

$amount

private float $amount

$bookingId

private int $bookingId

$currency

private string $currency

$date

private DateTime $date

$email

private string $email

$gatewayId

private string $gatewayId

$gatewayMode

private string $gatewayMode

$id

private int $id

$modifiedDate

private DateTime $modifiedDate

$status

private string $status

$transactionId

private string $transactionId

Methods

__construct()

public __construct(array<string|int, mixed> $atts) : mixed
Parameters
$atts : array<string|int, mixed>
Return values
mixed

addLog()

public addLog(string $message) : mixed
Parameters
$message : string
Return values
mixed

create()

public static create(array<string|int, mixed> $paymentData) : Payment
Parameters
$paymentData : array<string|int, mixed>
Return values
Payment

deleteExpiration()

Delete expiration time of pending confirmation for payment

public deleteExpiration() : mixed
Return values
mixed

generateKey()

public generateKey() : string
Return values
string

getAmount()

public getAmount() : float
Return values
float

getBookingId()

public getBookingId() : int
Return values
int

getCurrency()

public getCurrency() : string
Return values
string

getDate()

public getDate() : DateTime
Return values
DateTime

getEmail()

public getEmail() : string
Return values
string

getGatewayId()

public getGatewayId() : string
Return values
string

getGatewayMode()

public getGatewayMode() : string
Return values
string

getId()

public getId() : int
Return values
int

getKey()

public getKey() : string
Return values
string

getLogs()

public getLogs() : array<string|int, mixed>
Return values
array<string|int, mixed>

getModifiedDate()

public getModifiedDate() : DateTime
Return values
DateTime

getStatus()

public getStatus() : string
Return values
string

getTransactionId()

public getTransactionId() : string
Return values
string

isAuthorized()

public isAuthorized() : bool
Tags
since
4.2.2
Return values
bool

isFinished()

public isFinished() : bool
Tags
since
4.2.2
Return values
bool

retrieveExpiration()

Retrieve expiration time of pending confirmation for payment in UTC

public retrieveExpiration() : int
Return values
int

setAuthorized()

The customer went to the payment page (redirect) and authorized the payment. Used for payment gateways with redirects: Stripe, PayPal, WooCommerce.

public setAuthorized() : mixed
Tags
since
4.2.2
Return values
mixed

setId()

public setId(int $id) : mixed
Parameters
$id : int
Return values
mixed

setStatus()

public setStatus(string $status) : mixed
Parameters
$status : string
Return values
mixed

setTransactionId()

public setTransactionId(string $id) : mixed
Parameters
$id : string
Return values
mixed

updateExpiration()

Set expiration time of pending confirmation for payment

public updateExpiration(int $expirationTime) : mixed
Parameters
$expirationTime : int
Return values
mixed

Search results