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 (opens new window)

# Public Methods

Method Description
__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 or not the payment is being processed by gateway.
isRedirect() Returns whether or not the user needs to be redirected.
isSuccessful() Returns whether or not the payment was successful.
redirect() Perform the redirect.

# __construct()

View source (opens new window)

Arguments

  • $form

# getCode()

Returns the response code.

View source (opens new window)

Returns

string (opens new window)

# getData()

Returns the data.

View source (opens new window)

Returns

mixed

# getMessage()

Returns the gateway message.

View source (opens new window)

Returns

string (opens new window)

# getRedirectData()

Returns the redirect data provided.

View source (opens new window)

Returns

array (opens new window)

# getRedirectMethod()

Returns the redirect method to use, if any.

View source (opens new window)

Returns

string (opens new window)

# getRedirectUrl()

Returns the redirect URL to use, if any.

View source (opens new window)

Returns

string (opens new window)

# getTransactionReference()

Returns the transaction reference.

View source (opens new window)

Returns

string (opens new window)

# isProcessing()

Returns whether or not the payment is being processed by gateway.

View source (opens new window)

Returns

boolean (opens new window)

# isRedirect()

Returns whether or not the user needs to be redirected.

View source (opens new window)

Returns

boolean (opens new window)

# isSuccessful()

Returns whether or not the payment was successful.

View source (opens new window)

Returns

boolean (opens new window)

# redirect()

Perform the redirect.

View source (opens new window)

Returns

mixed