CashPaymentGateway extends AbstractInstructionPaymentGateway
in package

Tags
since
1.5.0

Table of Contents

$hasSandboxSupport  : bool
$id  : string
$instructions  : string
$description  : string
Public description.
$isEnabled  : bool
$isInternal  : bool
If true, then don't show this payment gateway on the settings page.
$isSandbox  : bool
$name  : string
Gateway name (label) on the settings page.
$publicName  : string
Public name (label) shown on the frontend.
__construct()  : mixed
enqueueScripts()  : void
An empty method is provided to add wp_enqueue_script() handlers of each of the payment methods, if necessary.
getDescription()  : string
getFields()  : array<string|int, mixed>
getFrontendData()  : array<string|int, mixed>
getId()  : string
getMode()  : string
getName()  : string
getPublicName()  : string
isActive()  : bool
isEnabled()  : bool
isInternal()  : bool
isOnlinePayment()  : bool
isSandbox()  : bool
isSupportsSandbox()  : bool
printBillingFields()  : mixed
processPayment()  : bool
getAdminDescription()  : string
getOption()  : mixed
getOptionName()  : string
getOptionNameRaw()  : string
isTranslatableOption()  : bool
setupProperties()  : mixed

Properties

$hasSandboxSupport

public bool $hasSandboxSupport = false
Tags
since
1.5.0

$id

public string $id = 'cash'
Tags
since
1.5.0

$instructions

public string $instructions = ''
Tags
since
1.5.0

$description

Public description.

protected string $description = ''
Tags
since
1.5.0

$isEnabled

protected bool $isEnabled = false
Tags
since
1.5.0

$isInternal

If true, then don't show this payment gateway on the settings page.

protected bool $isInternal = false
Tags
since
1.5.0

$isSandbox

protected bool $isSandbox = false
Tags
since
1.5.0

$name

Gateway name (label) on the settings page.

protected string $name = 'Abstract Payment'
Tags
since
1.5.0

$publicName

Public name (label) shown on the frontend.

protected string $publicName = ''
Tags
since
1.5.0

Methods

__construct()

public __construct() : mixed
Tags
since
1.5.0
Return values
mixed

enqueueScripts()

An empty method is provided to add wp_enqueue_script() handlers of each of the payment methods, if necessary.

public enqueueScripts() : void
Tags
see
AppointmentFormShortcode::enqueueScripts
Return values
void

getDescription()

public getDescription() : string
Tags
since
1.5.0
Return values
string

getFields()

public getFields() : array<string|int, mixed>
Tags
since
1.5.0
Return values
array<string|int, mixed>

Raw field args.

getFrontendData()

public getFrontendData() : array<string|int, mixed>
Tags
since
1.5.0
Return values
array<string|int, mixed>

getId()

public getId() : string
Tags
since
1.5.0
Return values
string

getMode()

public getMode() : string
Tags
since
1.5.0
Return values
string

'live'|'sandbox'

getName()

public getName() : string
Tags
since
1.5.0
Return values
string

getPublicName()

public getPublicName() : string
Tags
since
1.5.0
Return values
string

isActive()

public isActive() : bool
Tags
since
1.5.0
Return values
bool

Whether gateway is enabled and supports current plugin settings, like currency.

isEnabled()

public isEnabled() : bool
Tags
since
1.5.0
Return values
bool

isInternal()

public isInternal() : bool
Tags
since
1.5.0
Return values
bool

If true, then don't show this payment gateway on the settings page.

isOnlinePayment()

public isOnlinePayment() : bool
Tags
since
1.14.0
Return values
bool

isSandbox()

public isSandbox() : bool
Tags
since
1.5.0
Return values
bool

Is sandbox enabled.

isSupportsSandbox()

public isSupportsSandbox() : bool
Tags
since
1.5.0
Return values
bool

printBillingFields()

public printBillingFields() : mixed
Tags
since
1.5.0
Return values
mixed

processPayment()

public processPayment(Payment $payment, array<string|int, mixed> $args) : bool
Parameters
$payment : Payment
$args : array<string|int, mixed>

@param Booking $args['booking']

Tags
since
1.5.0
Return values
bool

getAdminDescription()

protected getAdminDescription() : string
Tags
since
1.5.0
Return values
string

Payment gateway description on the top of the page, before the first field.

getOption()

protected getOption(string $option[, mixed $default = '' ]) : mixed
Parameters
$option : string
$default : mixed = ''

Optional. '' by default.

Tags
since
1.5.0
Return values
mixed

getOptionName()

protected getOptionName(string $option) : string
Parameters
$option : string
Tags
since
1.5.0
Return values
string

Prefixed option name.

getOptionNameRaw()

protected getOptionNameRaw(string $option) : string
Parameters
$option : string
Tags
since
1.5.0
Return values
string

Unprefixed option name.

isTranslatableOption()

protected isTranslatableOption(string $option) : bool
Parameters
$option : string
Tags
since
1.5.0
Return values
bool

setupProperties()

protected setupProperties() : mixed
Tags
since
1.5.0
Return values
mixed

Search results