PaymentsRegistry
in package
Tags
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
Methods
__construct()
public
__construct() : mixed
Tags
Return values
mixed —bank()
public
bank() : BankPaymentGateway
Tags
Return values
BankPaymentGateway —cash()
public
cash() : CashPaymentGateway
Tags
Return values
CashPaymentGateway —free()
public
free() : FreePaymentGateway
Tags
Return values
FreePaymentGateway —getActive()
public
getActive([bool $skipInternal = true ]) : array<string|int, PaymentGatewayInterface>
Parameters
- $skipInternal : bool = true
-
Optional. True by default.
Tags
Return values
array<string|int, PaymentGatewayInterface> —[Gateway ID => Gateway object]
getAll()
public
getAll() : array<string|int, PaymentGatewayInterface>
Tags
Return values
array<string|int, PaymentGatewayInterface> —[Gateway ID => Gateway object]
getAllManagable()
All except of internal payment gateways.
public
getAllManagable() : array<string|int, PaymentGatewayInterface>
Tags
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
Return values
array<string|int, PaymentGatewayInterface> —[Gateway ID => Gateway object]
getGateway()
public
getGateway(string $gatewayId) : PaymentGatewayInterface|null
Parameters
- $gatewayId : string
Tags
Return values
PaymentGatewayInterface|null —getGatewayName()
public
getGatewayName(string $gatewayId) : string
Parameters
- $gatewayId : string
Tags
Return values
string —isInstantGateway()
public
isInstantGateway(string $gatewayId) : bool
Parameters
- $gatewayId : string
Tags
Return values
bool —manual()
public
manual() : ManualPaymentGateway
Tags
Return values
ManualPaymentGateway —paypal()
public
paypal() : mixed
Tags
Return values
mixed —stripe()
public
stripe() : StripePaymentGateway
Tags
Return values
StripePaymentGateway —test()
public
test() : TestPaymentGateway