Open Journal Systems  3.3.0
Omnipay\Common\GatewayInterface Interface Reference
Inheritance diagram for Omnipay\Common\GatewayInterface:
Omnipay\Common\AbstractGateway Omnipay\Common\AbstractGatewayTest_MockAbstractGateway Omnipay\PayPal\ProGateway Omnipay\PayPal\RestGateway Omnipay\PayPal\ExpressGateway Omnipay\PayPal\ExpressInContextGateway

Public Member Functions

 getDefaultParameters ()
 
 getDefaultParameters ()
 
 getName ()
 
 getName ()
 
 getParameters ()
 
 getParameters ()
 
 getShortName ()
 
 getShortName ()
 
 initialize (array $parameters=array())
 
 initialize (array $parameters=array())
 

Detailed Description

Payment gateway interface

This interface class defines the standard functions that any Omnipay gateway needs to define.

See also
AbstractGateway

@method \Omnipay\Common\Message\RequestInterface authorize(array $options = array()) (Optional method) Authorize an amount on the customers card @method \Omnipay\Common\Message\RequestInterface completeAuthorize(array $options = array()) (Optional method) Handle return from off-site gateways after authorization @method \Omnipay\Common\Message\RequestInterface capture(array $options = array()) (Optional method) Capture an amount you have previously authorized @method \Omnipay\Common\Message\RequestInterface purchase(array $options = array()) (Optional method) Authorize and immediately capture an amount on the customers card @method \Omnipay\Common\Message\RequestInterface completePurchase(array $options = array()) (Optional method) Handle return from off-site gateways after purchase @method \Omnipay\Common\Message\RequestInterface refund(array $options = array()) (Optional method) Refund an already processed transaction @method \Omnipay\Common\Message\RequestInterface void(array $options = array()) (Optional method) Generally can only be called up to 24 hours after submitting a transaction @method \Omnipay\Common\Message\RequestInterface createCard(array $options = array()) (Optional method) The returned response object includes a cardReference, which can be used for future transactions @method \Omnipay\Common\Message\RequestInterface updateCard(array $options = array()) (Optional method) Update a stored card @method \Omnipay\Common\Message\RequestInterface deleteCard(array $options = array()) (Optional method) Delete a stored card

Payment gateway interface

This interface class defines the standard functions that any Omnipay gateway needs to define.

@method \Omnipay\Common\Message\NotificationInterface acceptNotification(array $options = array()) (Optional method) Receive and handle an instant payment notification (IPN) @method \Omnipay\Common\Message\RequestInterface authorize(array $options = array()) (Optional method) Authorize an amount on the customers card @method \Omnipay\Common\Message\RequestInterface completeAuthorize(array $options = array()) (Optional method) Handle return from off-site gateways after authorization @method \Omnipay\Common\Message\RequestInterface capture(array $options = array()) (Optional method) Capture an amount you have previously authorized @method \Omnipay\Common\Message\RequestInterface purchase(array $options = array()) (Optional method) Authorize and immediately capture an amount on the customers card @method \Omnipay\Common\Message\RequestInterface completePurchase(array $options = array()) (Optional method) Handle return from off-site gateways after purchase @method \Omnipay\Common\Message\RequestInterface refund(array $options = array()) (Optional method) Refund an already processed transaction @method \Omnipay\Common\Message\RequestInterface fetchTransaction(array $options = []) (Optional method) Fetches transaction information @method \Omnipay\Common\Message\RequestInterface void(array $options = array()) (Optional method) Generally can only be called up to 24 hours after submitting a transaction @method \Omnipay\Common\Message\RequestInterface createCard(array $options = array()) (Optional method) The returned response object includes a cardReference, which can be used for future transactions @method \Omnipay\Common\Message\RequestInterface updateCard(array $options = array()) (Optional method) Update a stored card @method \Omnipay\Common\Message\RequestInterface deleteCard(array $options = array()) (Optional method) Delete a stored card

Definition at line 37 of file lib/vendor/omnipay/common/src/Omnipay/Common/GatewayInterface.php.

Member Function Documentation

◆ getDefaultParameters() [1/2]

Omnipay\Common\GatewayInterface::getDefaultParameters ( )

Define gateway parameters, in the following format:

array( 'username' => '', // string variable 'testMode' => false, // boolean variable 'landingPage' => array('billing', 'login'), // enum variable, first item is default );

Implemented in Omnipay\PayPal\RestGateway, Omnipay\PayPal\RestGateway, Omnipay\Common\AbstractGateway, Omnipay\Common\AbstractGateway, Omnipay\PayPal\ProGateway, Omnipay\PayPal\ProGateway, Omnipay\PayPal\ExpressGateway, and Omnipay\PayPal\ExpressGateway.

◆ getDefaultParameters() [2/2]

Omnipay\Common\GatewayInterface::getDefaultParameters ( )

Define gateway parameters, in the following format:

array( 'username' => '', // string variable 'testMode' => false, // boolean variable 'landingPage' => array('billing', 'login'), // enum variable, first item is default );

Returns
array

Implemented in Omnipay\PayPal\RestGateway, Omnipay\PayPal\RestGateway, Omnipay\Common\AbstractGateway, Omnipay\Common\AbstractGateway, Omnipay\PayPal\ProGateway, Omnipay\PayPal\ProGateway, Omnipay\PayPal\ExpressGateway, and Omnipay\PayPal\ExpressGateway.

◆ getName() [1/2]

◆ getName() [2/2]

◆ getParameters() [1/2]

Omnipay\Common\GatewayInterface::getParameters ( )

Get all gateway parameters

Returns
array

Implemented in Omnipay\Common\AbstractGateway.

◆ getParameters() [2/2]

Omnipay\Common\GatewayInterface::getParameters ( )

Get all gateway parameters

Returns
array

Implemented in Omnipay\Common\AbstractGateway.

◆ getShortName() [1/2]

Omnipay\Common\GatewayInterface::getShortName ( )

Get gateway short name

This name can be used with GatewayFactory as an alias of the gateway class, to create new instances of this gateway.

Implemented in Omnipay\Common\AbstractGateway, and Omnipay\Common\AbstractGateway.

◆ getShortName() [2/2]

Omnipay\Common\GatewayInterface::getShortName ( )

Get gateway short name

This name can be used with GatewayFactory as an alias of the gateway class, to create new instances of this gateway.

Returns
string

Implemented in Omnipay\Common\AbstractGateway, and Omnipay\Common\AbstractGateway.

◆ initialize() [1/2]

Omnipay\Common\GatewayInterface::initialize ( array  $parameters = array())

Initialize gateway with parameters

Implemented in Omnipay\Common\AbstractGateway, and Omnipay\Common\AbstractGateway.

◆ initialize() [2/2]

Omnipay\Common\GatewayInterface::initialize ( array  $parameters = array())

Initialize gateway with parameters

Returns
$this

Implemented in Omnipay\Common\AbstractGateway, and Omnipay\Common\AbstractGateway.


The documentation for this interface was generated from the following file: