Skip to content

Dummy ​

Type
Class
Namespace
craft\commerce\models\responses
Inherits
craft\commerce\models\responses\Dummy
Implements
craft\commerce\base\RequestResponseInterface
Since
2.0

This is a dummy gateway request response.

View source

Public Methods ​

MethodDescription
__construct()
getCode()Returns the response code.
getData()Returns the data.
getMessage()Returns the gateway message.
getRedirectData()Returns the redirect data provided.
getRedirectMethod()Returns the redirect method to use, if any.
getRedirectUrl()Returns the redirect URL to use, if any.
getTransactionReference()Returns the transaction reference.
isProcessing()Returns whether the payment is being processed by gateway.
isRedirect()Returns whether the user needs to be redirected.
isSuccessful()Returns whether the payment was successful.
redirect()Perform the redirect.

__construct() ​

View source

Arguments ​

  • $form

getCode() ​

Returns the response code.

View source

getData() ​

Returns the data.

View source

Returns ​

mixed

getMessage() ​

Returns the gateway message.

View source

getRedirectData() ​

Returns the redirect data provided.

View source

getRedirectMethod() ​

Returns the redirect method to use, if any.

View source

getRedirectUrl() ​

Returns the redirect URL to use, if any.

View source

getTransactionReference() ​

Returns the transaction reference.

View source

isProcessing() ​

Returns whether the payment is being processed by gateway.

View source

isRedirect() ​

Returns whether the user needs to be redirected.

View source

isSuccessful() ​

Returns whether the payment was successful.

View source

redirect() ​

Perform the redirect.

View source