Open Monograph Press  3.3.0
Omnipay\Common\Message\AbstractResponse Class Reference
Inheritance diagram for Omnipay\Common\Message\AbstractResponse:
Omnipay\Common\Message\ResponseInterface Omnipay\Common\Message\MessageInterface Omnipay\Common\Message\AbstractResponseTest_MockRedirectResponse Omnipay\PayPal\Message\Response Omnipay\PayPal\Message\RestResponse Omnipay\PayPal\Message\ExpressAuthorizeResponse Omnipay\PayPal\Message\ExpressTransactionSearchResponse Omnipay\PayPal\Message\RestAuthorizeResponse Omnipay\PayPal\Message\ExpressCompletePurchaseResponse Omnipay\PayPal\Message\ExpressInContextAuthorizeResponse

Public Member Functions

 __construct (RequestInterface $request, $data)
 
 __construct (RequestInterface $request, $data)
 
 getCode ()
 
 getCode ()
 
 getData ()
 
 getData ()
 
 getMessage ()
 
 getMessage ()
 
 getRedirectData ()
 
 getRedirectMethod ()
 
 getRedirectResponse ()
 
 getRedirectResponse ()
 
 getRedirectUrl ()
 
 getRequest ()
 
 getRequest ()
 
 getTransactionId ()
 
 getTransactionId ()
 
 getTransactionReference ()
 
 getTransactionReference ()
 
 isCancelled ()
 
 isCancelled ()
 
 isPending ()
 
 isPending ()
 
 isRedirect ()
 
 isRedirect ()
 
 isTransparentRedirect ()
 
 isTransparentRedirect ()
 
 redirect ()
 
 redirect ()
 
- Public Member Functions inherited from Omnipay\Common\Message\ResponseInterface
 isSuccessful ()
 
 isSuccessful ()
 

Protected Member Functions

 validateRedirect ()
 

Protected Attributes

 $data
 
 $request
 

Detailed Description

Abstract Response

This abstract class implements ResponseInterface and defines a basic set of functions that all Omnipay Requests are intended to include.

Objects of this class or a subclass are usually created in the Request object (subclass of AbstractRequest) as the return parameters from the send() function.

Example – validating and sending a request:

$myResponse = $myRequest->send(); // now do something with the $myResponse object, test for success, etc.

See also
ResponseInterface

Abstract Response

This abstract class implements ResponseInterface and defines a basic set of functions that all Omnipay Requests are intended to include.

Objects of this class or a subclass are usually created in the Request object (subclass of AbstractRequest) as the return parameters from the send() function.

Example – validating and sending a request:

$myResponse = $myRequest->send(); // now do something with the $myResponse object, test for success, etc.

Definition at line 31 of file lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractResponse.php.

Constructor & Destructor Documentation

◆ __construct() [1/2]

◆ __construct() [2/2]

Member Function Documentation

◆ getCode() [1/2]

Omnipay\Common\Message\AbstractResponse::getCode ( )

Response code

Returns
null|string A response code from the payment gateway

Implements Omnipay\Common\Message\ResponseInterface.

Reimplemented in Omnipay\PayPal\Message\RestResponse, and Omnipay\PayPal\Message\RestResponse.

Definition at line 140 of file vendor/omnipay/common/src/Common/Message/AbstractResponse.php.

◆ getCode() [2/2]

Omnipay\Common\Message\AbstractResponse::getCode ( )

Response code

Returns
null|string A response code from the payment gateway

Implements Omnipay\Common\Message\ResponseInterface.

Reimplemented in Omnipay\PayPal\Message\RestResponse, and Omnipay\PayPal\Message\RestResponse.

Definition at line 141 of file lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractResponse.php.

◆ getData() [1/2]

Omnipay\Common\Message\AbstractResponse::getData ( )

◆ getData() [2/2]

Omnipay\Common\Message\AbstractResponse::getData ( )

◆ getMessage() [1/2]

Omnipay\Common\Message\AbstractResponse::getMessage ( )

◆ getMessage() [2/2]

Omnipay\Common\Message\AbstractResponse::getMessage ( )

◆ getRedirectData()

◆ getRedirectMethod()

◆ getRedirectResponse() [1/2]

◆ getRedirectResponse() [2/2]

◆ getRedirectUrl()

◆ getRequest() [1/2]

Omnipay\Common\Message\AbstractResponse::getRequest ( )

◆ getRequest() [2/2]

Omnipay\Common\Message\AbstractResponse::getRequest ( )

◆ getTransactionId() [1/2]

Omnipay\Common\Message\AbstractResponse::getTransactionId ( )

Get the transaction ID as generated by the merchant website.

Returns
string

Definition at line 160 of file vendor/omnipay/common/src/Common/Message/AbstractResponse.php.

◆ getTransactionId() [2/2]

Omnipay\Common\Message\AbstractResponse::getTransactionId ( )

Get the transaction ID as generated by the merchant website.

Returns
string

Definition at line 161 of file lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractResponse.php.

◆ getTransactionReference() [1/2]

◆ getTransactionReference() [2/2]

◆ isCancelled() [1/2]

Omnipay\Common\Message\AbstractResponse::isCancelled ( )

Is the transaction cancelled by the user?

Returns
boolean

Implements Omnipay\Common\Message\ResponseInterface.

Definition at line 110 of file vendor/omnipay/common/src/Common/Message/AbstractResponse.php.

◆ isCancelled() [2/2]

Omnipay\Common\Message\AbstractResponse::isCancelled ( )

Is the transaction cancelled by the user?

Returns
boolean

Implements Omnipay\Common\Message\ResponseInterface.

Definition at line 111 of file lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractResponse.php.

◆ isPending() [1/2]

Omnipay\Common\Message\AbstractResponse::isPending ( )

◆ isPending() [2/2]

Omnipay\Common\Message\AbstractResponse::isPending ( )

◆ isRedirect() [1/2]

◆ isRedirect() [2/2]

◆ isTransparentRedirect() [1/2]

Omnipay\Common\Message\AbstractResponse::isTransparentRedirect ( )

Is the response a transparent redirect?

Returns
boolean

Definition at line 100 of file vendor/omnipay/common/src/Common/Message/AbstractResponse.php.

◆ isTransparentRedirect() [2/2]

Omnipay\Common\Message\AbstractResponse::isTransparentRedirect ( )

Is the response a transparent redirect?

Returns
boolean

Definition at line 101 of file lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractResponse.php.

◆ redirect() [1/2]

Omnipay\Common\Message\AbstractResponse::redirect ( )

Automatically perform any required redirect

This method is meant to be a helper for simple scenarios. If you want to customize the redirection page, just call the getRedirectUrl() and getRedirectData() methods directly.

@codeCoverageIgnore

Returns
void

Definition at line 176 of file lib/vendor/omnipay/common/src/Omnipay/Common/Message/AbstractResponse.php.

References Omnipay\Common\Message\AbstractResponse\getRedirectResponse().

◆ redirect() [2/2]

Omnipay\Common\Message\AbstractResponse::redirect ( )

Automatically perform any required redirect

This method is meant to be a helper for simple scenarios. If you want to customize the redirection page, just call the getRedirectUrl() and getRedirectData() methods directly.

Returns
void

Definition at line 203 of file vendor/omnipay/common/src/Common/Message/AbstractResponse.php.

References Omnipay\Common\Message\AbstractResponse\getRedirectResponse().

◆ validateRedirect()

Omnipay\Common\Message\AbstractResponse::validateRedirect ( )
protected

Field Documentation

◆ $data

◆ $request


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