Manual

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

This is a dummy gateway request response.

View source

Public Methods

MethodDescription
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.

getCode()

Returns the response code.

View source

Returns

string

Signature

public string getCode ( )

getData()

Returns the data.

View source

Returns

mixed

Signature

public mixed getData ( )

getMessage()

Returns the gateway message.

View source

Returns

string

Signature

public string getMessage ( )

getRedirectData()

Returns the redirect data provided.

View source

Returns

array

Signature

public array getRedirectData ( )

getRedirectMethod()

Returns the redirect method to use, if any.

View source

Returns

string

Signature

public string getRedirectMethod ( )

getRedirectUrl()

Returns the redirect URL to use, if any.

View source

Returns

string

Signature

public string getRedirectUrl ( )

getTransactionReference()

Returns the transaction reference.

View source

Returns

string

Signature

public string getTransactionReference ( )

isProcessing()

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

View source

Returns

boolean

Signature

public boolean isProcessing ( )

isRedirect()

Returns whether or not the user needs to be redirected.

View source

Returns

boolean

Signature

public boolean isRedirect ( )

isSuccessful()

Returns whether or not the payment was successful.

View source

Returns

boolean

Signature

public boolean isSuccessful ( )

redirect()

Perform the redirect.

View source

Returns

mixed

Signature

public mixed redirect ( )