Open Journal Systems
3.3.0
|
Public Member Functions | |
all () | |
all () | |
create ($class, ClientInterface $httpClient=null, HttpRequest $httpRequest=null) | |
create ($class, ClientInterface $httpClient=null, HttpRequest $httpRequest=null) | |
find () | |
getSupportedGateways () | |
register ($className) | |
register ($className) | |
replace (array $gateways) | |
replace (array $gateways) | |
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:
// Create a gateway for the PayPal ExpressGateway // (routes to GatewayFactory::create) $gateway = Omnipay::create('ExpressGateway');
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:
// Create a gateway for the PayPal ExpressGateway // (routes to GatewayFactory::create) $gateway = Omnipay::create('ExpressGateway');
Definition at line 31 of file lib/vendor/omnipay/common/src/Omnipay/Common/GatewayFactory.php.
Omnipay\Common\GatewayFactory::all | ( | ) |
All available gateways
Definition at line 47 of file vendor/omnipay/common/src/Common/GatewayFactory.php.
Omnipay\Common\GatewayFactory::all | ( | ) |
All available gateways
Definition at line 48 of file lib/vendor/omnipay/common/src/Omnipay/Common/GatewayFactory.php.
Referenced by Omnipay\Common\GatewayFactory\find().
Omnipay\Common\GatewayFactory::create | ( | $class, | |
ClientInterface | $httpClient = null , |
||
HttpRequest | $httpRequest = null |
||
) |
Create a new gateway instance
string | $class | Gateway name |
ClientInterface | null | $httpClient | A HTTP Client implementation |
HttpRequest | null | $httpRequest | A Symfony HTTP Request implementation |
RuntimeException | If no such gateway is found |
Definition at line 83 of file vendor/omnipay/common/src/Common/GatewayFactory.php.
References Omnipay\Common\Helper\getGatewayClassName().
Omnipay\Common\GatewayFactory::create | ( | $class, | |
ClientInterface | $httpClient = null , |
||
HttpRequest | $httpRequest = null |
||
) |
Create a new gateway instance
string | $class | Gateway name |
ClientInterface | null | $httpClient | A Guzzle HTTP Client implementation |
HttpRequest | null | $httpRequest | A Symfony HTTP Request implementation |
RuntimeException | If no such gateway is found |
Definition at line 103 of file lib/vendor/omnipay/common/src/Omnipay/Common/GatewayFactory.php.
References Omnipay\Common\Helper\getGatewayClassName().
Omnipay\Common\GatewayFactory::find | ( | ) |
Automatically find and register all officially supported gateways
Definition at line 80 of file lib/vendor/omnipay/common/src/Omnipay/Common/GatewayFactory.php.
References Omnipay\Common\GatewayFactory\all(), Omnipay\Common\Helper\getGatewayClassName(), and Omnipay\Common\GatewayFactory\getSupportedGateways().
Omnipay\Common\GatewayFactory::getSupportedGateways | ( | ) |
Get a list of supported gateways which may be available
Definition at line 119 of file lib/vendor/omnipay/common/src/Omnipay/Common/GatewayFactory.php.
Referenced by Omnipay\Common\GatewayFactory\find().
Omnipay\Common\GatewayFactory::register | ( | $className | ) |
Register a new gateway
string | $className | Gateway name |
Definition at line 67 of file vendor/omnipay/common/src/Common/GatewayFactory.php.
Omnipay\Common\GatewayFactory::register | ( | $className | ) |
Register a new gateway
string | $className | Gateway name |
Definition at line 68 of file lib/vendor/omnipay/common/src/Omnipay/Common/GatewayFactory.php.
Omnipay\Common\GatewayFactory::replace | ( | array | $gateways | ) |
Replace the list of available gateways
array | $gateways | An array of gateway names |
Definition at line 57 of file vendor/omnipay/common/src/Common/GatewayFactory.php.
Omnipay\Common\GatewayFactory::replace | ( | array | $gateways | ) |
Replace the list of available gateways
array | $gateways | An array of gateway names |
Definition at line 58 of file lib/vendor/omnipay/common/src/Omnipay/Common/GatewayFactory.php.