Class GatewayFactory
Omnipay Gateway Factory class
This class abstracts a set of gateways that can be independently
registered, accessed, and used.
Note that static calls to the Omnipay class are routed to this class by
the static call router (__callStatic) in Omnipay.
Example:
$gateway = Omnipay::create('ExpressGateway');
Methods summary
public
array
|
#
all( )
All available gateways
Returns
array An array of gateway names
|
public
|
#
replace( array $gateways )
Replace the list of available gateways
Replace the list of available gateways
Parameters
- $gateways
- An array of gateway names
|
public
|
#
register( string $className )
Register a new gateway
Parameters
|
public
array
|
#
find( )
Automatically find and register all officially supported gateways
Automatically find and register all officially supported gateways
Returns
array An array of gateway names
|
public
Omnipay\Common\GatewayInterface
|
#
create( string $class, Guzzle\Http\ClientInterface $httpClient = null, Symfony\Component\HttpFoundation\Request $httpRequest = null )
Create a new gateway instance
Create a new gateway instance
Parameters
- $class
- Gateway name
- $httpClient
- A Guzzle HTTP Client implementation
- $httpRequest
- A Symfony HTTP Request implementation
Returns
Throws
|
public
array
|
#
getSupportedGateways( )
Get a list of supported gateways which may be available
Get a list of supported gateways which may be available
Returns
array
|