payment\PaymentFactory
Helper class for creating payment processors
Synopsis
class PaymentFactory
{
- // methods
- public static Array|Null get_factory_config()
- public static PaymentGateway get_gateway()
- public static Payment get_payment_model()
- public static PaymentProcessor factory()
Methods
public
- factory() — Factory function to create payment processor object with associated Payment and PaymentGateway injected into it.
- get_factory_config() — Get the factory config for a particular payment method from YAML file.
- get_gateway() — Get the gateway object that will be used for the given payment method.
- get_payment_model() — Get the payment object that will be used for the given payment method.