Versions Compared

Key

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

...

Those log types are available from within the Data class.

Type
Data::LOG_INFO
Data::LOG_DEBUG
Data::LOG_NOTICE
Data::LOG_CRITICAL
Data::LOG_ERROR
Data::LOG_WARNING

In normal cases, we use Data::setLogNotice/Data::setLogInfo to log notices, but from Data::setLogInternal we can also choose our own severity, and depending on the choice the logs are separated. But they is always there. The goal is to log as much as possible (on demand) so that it get easier to track problems to the correct source. Also, very much all customer events that is vital for "weird tracking" is being done; for example, a very common problem for merchants is when a customer decides to start a payment, but in the middle of the process further chooses to not proceed.

...

Errors that is not necessarily errors

Resurs Checkout and missing payments

If you enable logging you can see a bunch of errors that looks like this:

No Format
Preferred payment id set to "ABC" for customer.
Checkout type in order meta is empty, but found in session as rco. This usually occurs in RCO mode. Order meta data will update.
trbwc internal generic exception 8: SOAP Service getPayment: [REFERENCED_DATA_DONT_EXISTS] Tekniskt fel (Could not find externalId: ABC in E-commerce [...], line 2887.
trbwc internal generic exception 8: SOAP Service getPayment: [REFERENCED_DATA_DONT_EXISTS] Tekniskt fel (Could not find externalId: ABC in E-commerce [...], line 2887.
trbwc internal generic exception 8: SOAP Service getPayment: [REFERENCED_DATA_DONT_EXISTS] Tekniskt fel (Could not find externalId: ABC in E-commerce [...], line 2887.
Callback received from Resurs Bank: UPDATE (Digest Status: Valid, External ID: ABC, Internal ID: 2893).
Callback received from Resurs Bank: BOOKED (Digest Status: Valid, External ID: ABC, Internal ID: 2893).
API data request: Customer returned from Resurs Bank. WooCommerce order validation in progress..
Customer returned from Resurs Bank to complete order ABC.
Session value rco_order_id has been reset after successful return to landing page.

As you can see in the above, there are three exceptions with code 8. This is not an actual error, if the logs are followed by the rest of the input you also can see - this is a natural flow caused by the internal order id tracking. For a normal flow, like "simplified", we usually trying to find a proper order from Resurs Bank while we for example prepare for signing. When an order can not be found, it may be caused by specific settings in the plugin that changes how payment id's should be handled. In such cases, the plugin will do a couple of fallbacks to alternate payment references to see if they exist. In RCO, the flow works differently and the plugin may fall back to payment id's that is for real unexistent during the primary payment process. Therefore this is not a regular error, it's a natural behaviour.