Status

Processor of checking status of an order.

package

Default

Methods

Set a status code as an error.

codeError() : \Dotpay\Processor\Status

Set a status code as order wasn't found.

codeNotExist() : \Dotpay\Processor\Status

Set a status code as other status.

codeOtherStatus() : \Dotpay\Processor\Status

Set a status code as a pending.

codePending() : \Dotpay\Processor\Status

Set a status code as a success.

codeSuccess() : \Dotpay\Processor\Status

Set a status code as too many payments.

codeTooMany() : \Dotpay\Processor\Status

Return a status code.

getCode() : string

Response

string

Return array with status data.

getData() : array

Response

array

Return a string which contains JSON data with the current status information.

getJson() : string
Throws
\Dotpay\Exception\FunctionNotFoundException

Thrown when function json_encode() isn't found

Response

string

Return an additional message.

getMessage() : string|null

Response

string|null

Return an order status description.

getStatus() : string

Response

string

Set an additional message.

setMessage(string $message) : \Dotpay\Processor\Status

Arguments

$message

string

An additional message

Response

\Dotpay\Processor\Status

Set the given order status description.

setStatus(string $status) : \Dotpay\Processor\Status

Arguments

$status

string

Order status description

Response

\Dotpay\Processor\Status

Properties

Order doesn't exist

NOT_EXISTS : integer
static
var

Order doesn't exist

Type(s)

integer

An error with payment has been occured

ERROR : integer
static
var

An error with payment has been occured

Type(s)

integer

Shop is still waiting for confirmation of payment

PENDING : integer
static
var

Shop is still waiting for confirmation of payment

Type(s)

integer

Order has been paid successfully

SUCCESS : integer
static
var

Order has been paid successfully

Type(s)

integer

Order has been paid before

TOO_MANY : integer
static
var

Order has been paid before

Type(s)

integer

Status of the order is different than ERROR or PENDING

OTHER_STATUS : integer
static
var

Status of the order is different than ERROR or PENDING

Type(s)

integer

Status code

code : integer
var

Status code

Type(s)

integer

Order status from a shop

status : string
var

Order status from a shop

Type(s)

string

An additional message which can be displayed on a shop site

message : string
var

An additional message which can be displayed on a shop site

Type(s)

string