TwoCheckoutGateway extends Gateway
in package

2Checkout

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
$accountNumber  : string
$defaultOptions  : mixed
$insListener  : InsListener
$secretWord  : string
$supportedCurrencies  : array<string|int, mixed>
__construct()  : mixed
generateItemName()  : string
getAdminDescription()  : strings
getAdminTitle()  : string
getCheckoutData()  : array<string|int, mixed>
getDescription()  : string
getId()  : string
getInstructions()  : string
getMode()  : string
getPaymentUrl()  : string
getTitle()  : string
hasPaymentFields()  : bool
hasVisiblePaymentFields()  : bool
hideInstructions()  : 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
isSupportCurrency()  : bool
parsePaymentFields()  : bool
preRegister()  : mixed
processPayment()  : mixed
register()  : mixed
registerOptionsFields()  : mixed
renderPaymentFields()  : mixed
setupPaymentFields()  : mixed
setupSuppportedCurrencies()  : mixed
storePaymentFields()  : bool
getDefaultOption()  : mixed
getOption()  : mixed
initDefaultOptions()  : array<string|int, mixed>
initId()  : mixed
paymentCompleted()  : bool
paymentFailed()  : bool
paymentOnHold()  : bool
paymentRefunded()  : bool
setupProperties()  : mixed
generateAdminDescription()  : mixed
getRequestArgs()  : string
renderField()  : string
renderFieldWrapper()  : string
setupInsListener()  : mixed

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 = ''

$accountNumber

private string $accountNumber

$defaultOptions

private mixed $defaultOptions

$insListener

private InsListener $insListener

$secretWord

private string $secretWord

$supportedCurrencies

private array<string|int, mixed> $supportedCurrencies = array()

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

getPaymentUrl()

public getPaymentUrl(Booking $booking, Payment $payment) : string
Parameters
$booking : Booking
$payment : Payment
Return values
string

getTitle()

public getTitle() : string
Return values
string

hasPaymentFields()

public hasPaymentFields() : bool
Return values
bool

hasVisiblePaymentFields()

public hasVisiblePaymentFields() : bool
Return values
bool

hideInstructions()

public hideInstructions(bool $show, string $gatewayId) : bool
Parameters
$show : bool
$gatewayId : string
Tags
since
3.6.1
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

isSupportCurrency()

public isSupportCurrency(string $currency) : bool
Parameters
$currency : string

Currency code.

Return values
bool

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 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
Return values
mixed

renderPaymentFields()

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

setupPaymentFields()

public setupPaymentFields() : mixed
Return values
mixed

setupSuppportedCurrencies()

public setupSuppportedCurrencies() : 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 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

generateAdminDescription()

private generateAdminDescription() : mixed
Return values
mixed

getRequestArgs()

private getRequestArgs(Booking $booking, Payment $payment) : string
Parameters
$booking : Booking
$payment : Payment
Return values
string

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

setupInsListener()

private setupInsListener() : mixed
Return values
mixed

Search results