Class AbstractGateway
Base payment gateway class
This abstract class should be extended by all payment gateways throughout the Omnipay system. It enforces implementation of the GatewayInterface interface and defines various common attibutes and methods that all gateways should have.
Example:
// 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.
- Omnipay\Common\AbstractGateway implements Omnipay\Common\GatewayInterface
Abstract
Namespace: Omnipay\Common
See:
Located at Common/AbstractGateway.php
Namespace: Omnipay\Common
See:
Omnipay\Common\GatewayInterface
Located at Common/AbstractGateway.php
public
|
#
__construct(
Create a new gateway instance |
public
string
|
|
public
|
|
public
array
|
|
public
array
|
|
public
mixed
|
|
public
|
|
public
boolean
|
|
public
|
|
public
string
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
protected
|
|
protected
|
|
protected
Symfony\Component\HttpFoundation\Request
|
getName()
|
authorize(),
capture(),
completeAuthorize(),
completePurchase(),
createCard(),
deleteCard(),
purchase(),
refund(),
updateCard(),
void()
|
protected
Symfony\Component\HttpFoundation\ParameterBag
|
$parameters
|
|
protected
|
$httpClient
|
|
protected
Symfony\Component\HttpFoundation\Request
|
$httpRequest
|