|Table of Contents|
When you register callbacks in the plugin they will also show up in the administration interface like this:
This body is not only visible in a production environment. However, as we know it the http response code is always visible in logs somewhere so for that part there's no problems. However, sometimes merchants or developers needs to extend their error checking som instead of push up breakpoints and such, in an environment, the json body response is an extra errorchecking layer. This is what you get from it (see the example above).
|aliveConfirm||Always true, when nothing has yet gone wrong. Set to false on exceptions.|
|actual||Which callback that has been send from Resurs (or you manually) to be handled.|
|digestCode||The result of Resurs or your action (see codes below).|
An extension that tells the sending part if something went wrong during the callback. This can be mocked from the "mockAdmin".
This is the default view of the error part. If there are no errors, the code will always be 0 and the message empty (unless there are special conditions that occurs on Resurs Bank which sometimes not returning a proper error code).
|Code||Response string||Description||Plugin constant|
|200||Test OK||When callbacks are tested and accepted by system.||HTTP_RESPONSE_TEST_OK|
|202||Order 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.
|Callback received handled and updated without errors.||HTTP_RESPONSE_OK|
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.
|410||Order 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.
|Unhandled||Errorstring 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