Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

CodeResponse stringDescriptionPlugin constant
200Test OKWhen callbacks are tested and accepted by system.HTTP_RESPONSE_TEST_OK
202Order is not ours, but it is still accepted.

When option accept_rejected_callbacks is enabled in config and the plugin receives an order that is not explicitly created in the current platform.

This status means that plugin has been rejected to handle the order, but responds as the callback was OK.
The purpose of this status is to make Resurs Bank callback service stop sending further requests in case they are not stopping on rejects.

HTTP_RESPONSE_NOT_OURS_BUT_ACCEPTED
204

OK

Callback received handled and updated without errors.HTTP_RESPONSE_OK
406Digest rejected.

The salt key has been changed in the system and is no longer matching with Resurs Bank.

The way the plugin are calculating the digest key will fail and return this error.

HTTP_RESPONSE_DIGEST_IS_WRONG
410Order is not ours.

When option accept_rejected_callbacks is disabled in config and the plugin receives an order that is not explicitly created in the current platform.

This status means the plugin is unconditionally rejecting the callback.

HTTP_RESPONSE_GONE_NOT_OURS
UnhandledErrorstring generated automaticallly

This is an automatically generated and forwarded code and errormessage.

It is only shown during exceptions that is catched by the system on unknown errors.

-

Responses caused by someone else

Some errors may be unpredictable, so if you get any other message or response in the callback, you may want to look up that specific error. This is an example:

No Format
{
	"aliveConfirm": false,
	"actual": "UPDATE",
	"errors": {
		"code": 616,
		"message": "You are not of type Skrull nor Kree."
	},
	"digestCode": 616
}

The error itself can also be seen in the HTTP response header in the (for Chrome) network section of the request:

Image Added