Class Omnipay
Omnipay class
Provides static access to the gateway factory methods. This is the recommended route for creation and establishment of payment gateway objects via the standard GatewayFactory.
Example:
// Create a gateway for the PayPal ExpressGateway // (routes to GatewayFactory::create) $gateway = Omnipay::create('ExpressGateway'); // Initialise the gateway $gateway->initialize(...); // Get the gateway parameters. $parameters = $gateway->getParameters(); // Create a credit card object $card = new CreditCard(...); // Do an authorisation transaction on the gateway if ($gateway->supportsAuthorize()) { $gateway->authorize(...); } else { throw new \Exception('Gateway does not support authorize()'); }
For further code examples see the omnipay-example repository on github.
Namespace: Omnipay
See:
Codingstandardsignoreend
Codingstandardsignorestart
Located at Omnipay.php
See:
Omnipay\Common\GatewayFactory
Codingstandardsignoreend
Codingstandardsignorestart
Located at Omnipay.php
public static
|
|
public static
|
|
public static
mixed
|