Gateway
in package
implements GatewayInterface

Interfaces, Classes and Traits

GatewayInterface

Table of Contents

MODE_LIVE  = 'live'
MODE_SANDBOX  = 'sandbox'
$adminDescription  : string
$adminTitle  : string
$description  : string
$enabled  : bool
$id  : string
$instructions  : string
$isSandbox  : bool
$isSuspended  : bool
$paymentFields  : array<string|int, mixed>
$paymentFieldsErrors  : array<string|int, mixed>
$postedPaymentFields  : array<string|int, mixed>
$showOptions  : type
$title  : string
$defaultOptions  : mixed
__construct()  : mixed
generateItemName()  : string
getAdminDescription()  : strings
getAdminTitle()  : string
getCheckoutData()  : array<string|int, mixed>
getDescription()  : string
getId()  : string
getInstructions()  : string
getMode()  : string
getTitle()  : string
hasPaymentFields()  : bool
hasVisiblePaymentFields()  : bool
initPaymentFields()  : array<string|int, mixed>
isActive()  : bool
Whether is Gateway Eanbled and support current plugin settings (currency, etc.)
isEnabled()  : bool
isSandbox()  : bool
isShowOptions()  : mixed
parsePaymentFields()  : bool
preRegister()  : mixed
processPayment()  : mixed
register()  : mixed
registerOptionsFields()  : mixed
renderPaymentFields()  : mixed
setupPaymentFields()  : mixed
storePaymentFields()  : bool
getDefaultOption()  : mixed
getOption()  : mixed
initDefaultOptions()  : array<string|int, mixed>
initId()  : mixed
paymentCompleted()  : bool
paymentFailed()  : bool
paymentOnHold()  : bool
paymentRefunded()  : bool
setupProperties()  : mixed
renderField()  : string
renderFieldWrapper()  : string

Constants

MODE_LIVE

public mixed MODE_LIVE = 'live'

MODE_SANDBOX

public mixed MODE_SANDBOX = 'sandbox'

Properties

$adminDescription

protected string $adminDescription = ''

$adminTitle

protected string $adminTitle = ''

$description

protected string $description = ''

$enabled

protected bool $enabled = false

$id

protected string $id = ''

$instructions

protected string $instructions = ''
Tags
since
3.6.1

$isSandbox

protected bool $isSandbox = false

$isSuspended

protected bool $isSuspended = false
Tags
since
4.2.4

$paymentFields

protected array<string|int, mixed> $paymentFields

$paymentFieldsErrors

protected array<string|int, mixed> $paymentFieldsErrors = array()

$postedPaymentFields

protected array<string|int, mixed> $postedPaymentFields = array()

$showOptions

protected type $showOptions = true

$title

protected string $title = ''

$defaultOptions

private mixed $defaultOptions

Methods

__construct()

public __construct() : mixed
Return values
mixed

generateItemName()

public generateItemName(Booking $booking) : string
Parameters
$booking : Booking
Return values
string

getAdminDescription()

public getAdminDescription() : strings
Return values
strings

getAdminTitle()

public getAdminTitle() : string
Return values
string

getCheckoutData()

public getCheckoutData(Booking $booking) : array<string|int, mixed>
Parameters
$booking : Booking
Return values
array<string|int, mixed>

getDescription()

public getDescription() : string
Return values
string

getId()

public getId() : string
Return values
string

getInstructions()

public getInstructions() : string
Tags
since
3.6.1
Return values
string

getMode()

public getMode() : string
Return values
string

getTitle()

public getTitle() : string
Return values
string

hasPaymentFields()

public hasPaymentFields() : bool
Return values
bool

hasVisiblePaymentFields()

public hasVisiblePaymentFields() : bool
Return values
bool

initPaymentFields()

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

isActive()

Whether is Gateway Eanbled and support current plugin settings (currency, etc.)

public isActive() : bool
Return values
bool

isEnabled()

public isEnabled() : bool
Return values
bool

isSandbox()

public isSandbox() : bool
Return values
bool

isShowOptions()

public isShowOptions() : mixed
Return values
mixed

parsePaymentFields()

public parsePaymentFields(array<string|int, mixed> $input, array<string|int, mixed> &$errors) : bool
Parameters
$input : array<string|int, mixed>
$errors : array<string|int, mixed>
Return values
bool

preRegister()

public preRegister(array<string|int, string> $suspendPayments) : mixed
Parameters
$suspendPayments : array<string|int, string>
Tags
since
4.2.4
Return values
mixed

processPayment()

public abstract processPayment(Booking $booking, Payment $payment) : mixed
Parameters
$booking : Booking
$payment : Payment
Return values
mixed

register()

public register(GatewayManager $gatewayManager) : mixed
Parameters
$gatewayManager : GatewayManager
Return values
mixed

registerOptionsFields()

public registerOptionsFields(SettingsSubTab &$subTab) : mixed
Parameters
$subTab : SettingsSubTab
Tags
since
3.6.1

added new filter - "mphb_gateway_has_instructions".

Return values
mixed

renderPaymentFields()

public renderPaymentFields(Booking $booking) : mixed
Parameters
$booking : Booking
Return values
mixed

setupPaymentFields()

public setupPaymentFields() : mixed
Return values
mixed

storePaymentFields()

public storePaymentFields(Payment $payment) : bool
Parameters
$payment : Payment
Return values
bool

getDefaultOption()

protected getDefaultOption(string $optionName) : mixed
Parameters
$optionName : string
Return values
mixed

getOption()

protected getOption(string $optionName) : mixed
Parameters
$optionName : string
Return values
mixed

initDefaultOptions()

protected initDefaultOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

initId()

protected abstract initId() : mixed
Return values
mixed

paymentCompleted()

protected paymentCompleted(Payment $payment) : bool
Parameters
$payment : Payment
Return values
bool

paymentFailed()

protected paymentFailed(Payment $payment) : bool
Parameters
$payment : Payment
Return values
bool

paymentOnHold()

protected paymentOnHold(Payment $payment) : bool
Parameters
$payment : Payment
Return values
bool

paymentRefunded()

protected paymentRefunded(Payment $payment) : bool
Parameters
$payment : Payment
Return values
bool

setupProperties()

protected setupProperties() : mixed
Return values
mixed

renderField()

private renderField(string $fieldName, array<string|int, mixed> $fieldDetails) : string
Parameters
$fieldName : string
$fieldDetails : array<string|int, mixed>
Return values
string

renderFieldWrapper()

private renderFieldWrapper(string $fieldName, array<string|int, mixed> $fieldDetails) : string
Parameters
$fieldName : string
$fieldDetails : array<string|int, mixed>
Return values
string

Search results