PaypalGateway extends Gateway
in package

Table of Contents

MODE_LIVE  = 'live'
MODE_SANDBOX  = 'sandbox'
$adminDescription  : string
$adminTitle  : string
$businessEmail  : string
$description  : string
$enabled  : bool
$id  : string
$instructions  : string
$ipnListener  : IpnListener
$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
$supportedCurrencies  : mixed
__construct()  : mixed
generateItemName()  : string
getAdminDescription()  : strings
getAdminTitle()  : string
getBusinessEmail()  : string
getCheckoutData()  : array<string|int, mixed>
getDescription()  : string
getId()  : string
getInstructions()  : string
getItemArgs()  : array<string|int, mixed>
getMode()  : string
getPaymentUrl()  : string
Get the PayPal request URL for an booking.
getRequestArgs()  : 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()  : 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
setupNotificationListener()  : mixed
setupProperties()  : mixed
getBillingInfoArgs()  : array<string|int, mixed>
renderField()  : string
renderFieldWrapper()  : string
setupSupportedCurrencies()  : 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 = ''

$businessEmail

protected string $businessEmail

$description

protected string $description = ''

$enabled

protected bool $enabled = false

$id

protected string $id = ''

$instructions

protected string $instructions = ''
Tags
since
3.6.1

$ipnListener

protected IpnListener $ipnListener

$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

$supportedCurrencies

private mixed $supportedCurrencies

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

getBusinessEmail()

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

getItemArgs()

public getItemArgs(Booking $booking, Payment $payment) : array<string|int, mixed>
Parameters
$booking : Booking
$payment : Payment
Tags
since
3.6.1

added new parameter - $payment.

Return values
array<string|int, mixed>

getMode()

public getMode() : string
Return values
string

getPaymentUrl()

Get the PayPal request URL for an booking.

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

getRequestArgs()

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

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

setupNotificationListener()

protected setupNotificationListener() : mixed
Return values
mixed

setupProperties()

protected setupProperties() : mixed
Return values
mixed

getBillingInfoArgs()

private getBillingInfoArgs(Booking $booking) : array<string|int, mixed>
Parameters
$booking : Booking
Return values
array<string|int, 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

setupSupportedCurrencies()

private setupSupportedCurrencies() : mixed
Return values
mixed

Search results