PaymentGateways
class PaymentGateways
Manages payment gateways
Traits
Singleton trait.
Properties
static protected | $instance | from Singleton | |
private array | $callbacks | ||
private array | $gateways |
Methods
Returns payment gateway details based on its name.
Returns a list of the payment gateway objects
Returns a list of registered payment gateways.
No description
Registers the payment gateways.
Manually registers a payment gateways.
Executes an entry point for registered gateways, defined in routes.php file.
Loops over each payment type and ensures the editing theme has a payment form partial, if the partial does not exist, it will create one.
No description
Details
in
Singleton at line 18
final static
instance()
Create a new instance of this singleton.
in
Singleton at line 28
final static
forgetInstance()
Forget this singleton's instance if it exists
in
Singleton at line 36
final protected
__construct()
Constructor.
in
Singleton at line 44
protected
initialize()
Initialize the singleton free from constructor parameters.
in
Singleton at line 48
__clone()
No description
in
Singleton at line 53
__wakeup()
No description
at line 36
mixed|null
findGateway($name)
Returns payment gateway details based on its name.
at line 50
BasePaymentGateway[]
listGatewayObjects()
Returns a list of the payment gateway objects
at line 66
array
listGateways()
Returns a list of registered payment gateways.
at line 90
protected
loadGateways()
No description
at line 119
registerGateways(string $owner, array $classes)
Registers the payment gateways.
The argument is an array of the gateway classes.
at line 146
registerCallback(callable $callback)
Manually registers a payment gateways.
Usage:
PaymentGateways::registerCallback(function($manager){ $manager->registerGateways([...]); });
at line 159
static Response
runEntryPoint(string $code = null, string $uri = null)
Executes an entry point for registered gateways, defined in routes.php file.
at line 183
static void
createPartials()
Loops over each payment type and ensures the editing theme has a payment form partial, if the partial does not exist, it will create one.
at line 210
static protected string
getFileContent(string $class)
No description