Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
omnipay-common/src/Common/Message/ResponseInterface.php
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
65 lines (57 sloc)
1.31 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Response interface | |
*/ | |
namespace Omnipay\Common\Message; | |
/** | |
* Response Interface | |
* | |
* This interface class defines the standard functions that any Omnipay response | |
* interface needs to be able to provide. It is an extension of MessageInterface. | |
* | |
*/ | |
interface ResponseInterface extends MessageInterface | |
{ | |
/** | |
* Get the original request which generated this response | |
* | |
* @return RequestInterface | |
*/ | |
public function getRequest(); | |
/** | |
* Is the response successful? | |
* | |
* @return boolean | |
*/ | |
public function isSuccessful(); | |
/** | |
* Does the response require a redirect? | |
* | |
* @return boolean | |
*/ | |
public function isRedirect(); | |
/** | |
* Is the transaction cancelled by the user? | |
* | |
* @return boolean | |
*/ | |
public function isCancelled(); | |
/** | |
* Response Message | |
* | |
* @return null|string A response message from the payment gateway | |
*/ | |
public function getMessage(); | |
/** | |
* Response code | |
* | |
* @return null|string A response code from the payment gateway | |
*/ | |
public function getCode(); | |
/** | |
* Gateway Reference | |
* | |
* @return null|string A reference provided by the gateway to represent this transaction | |
*/ | |
public function getTransactionReference(); | |
} |