PaymentsRegistry
in package

Tags
since
1.5.0

Table of Contents

$payments  : array<string|int, PaymentGatewayInterface>
__construct()  : mixed
bank()  : BankPaymentGateway
cash()  : CashPaymentGateway
free()  : FreePaymentGateway
getActive()  : array<string|int, PaymentGatewayInterface>
getAll()  : array<string|int, PaymentGatewayInterface>
getAllManagable()  : array<string|int, PaymentGatewayInterface>
All except of internal payment gateways.
getEnabled()  : array<string|int, PaymentGatewayInterface>
getGateway()  : PaymentGatewayInterface|null
getGatewayName()  : string
isInstantGateway()  : bool
manual()  : ManualPaymentGateway
paypal()  : mixed
stripe()  : StripePaymentGateway
test()  : TestPaymentGateway

Properties

$payments

protected array<string|int, PaymentGatewayInterface> $payments = array()
Tags
since
1.5.0

Methods

__construct()

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

getActive()

public getActive([bool $skipInternal = true ]) : array<string|int, PaymentGatewayInterface>
Parameters
$skipInternal : bool = true

Optional. True by default.

Tags
since
1.5.0
Return values
array<string|int, PaymentGatewayInterface>

[Gateway ID => Gateway object]

getAllManagable()

All except of internal payment gateways.

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

[Gateway ID => Gateway object]

getEnabled()

public getEnabled([bool $skipInternal = true ]) : array<string|int, PaymentGatewayInterface>
Parameters
$skipInternal : bool = true

Optional. True by default.

Tags
since
1.5.0
Return values
array<string|int, PaymentGatewayInterface>

[Gateway ID => Gateway object]

getGatewayName()

public getGatewayName(string $gatewayId) : string
Parameters
$gatewayId : string
Tags
since
1.5.0
Return values
string

isInstantGateway()

public isInstantGateway(string $gatewayId) : bool
Parameters
$gatewayId : string
Tags
since
1.5.0
Return values
bool

paypal()

public paypal() : mixed
Tags
since
1.6.0
Return values
mixed

Search results