Debug and logs
The Debug - Log tab turns on two kinds of logging and lets you read the diagnostic payment log by order. Use them while you investigate a problem, then turn them off.
Logging Settings
| Setting | What it does |
|---|---|
| Enable Debug | Writes technical information about the requests to Authorize.net and their answers, and about received webhooks. Use it only while troubleshooting. |
| Enable diagnostic payment log | Records, for each payment attempt, the amount and currency sent to Authorize.net, the cart and order-total lines, the currency values and the verified transaction details. Credentials and payment-account data are never recorded. |
Press Apply changes after changing either setting.
Where the files are
All files are written to the logs folder of OpenCart (system/storage/logs/ on most installations, system/logs/ on OpenCart 1.5).
| File | Written by |
|---|---|
| The OpenCart error log | Enable Debug on OpenCart 1.5 to 3.x. Read it in System > Maintenance > Error Logs (OpenCart 2.x and 3.x) or System > Error Logs (OpenCart 1.5). |
authnet_ah_payment.log and authnet_ah_webhook.log | Enable Debug on OpenCart 4: payment requests and answers, and webhook checks. Download them by FTP. |
authorize_net_ah_diagnostic.log | Enable diagnostic payment log, on every version. Read it on this tab. |
Diagnostic Payment Log
This section shows the content of the diagnostic payment log.
| Control | What it does |
|---|---|
| Order ID | Enter an order number to see only the entries of that order. Leave it empty (All orders) to see everything. |
| Filter | Applies the order number. |
| Refresh log | Reads the log again, for example after a new test payment. |
| Clear log | Deletes the diagnostic log file. OpenCart 4 asks Clear diagnostic log? first. |
When nothing has been recorded the section shows No diagnostic entries.
When to use each log
- An order was placed on hold for an amount mismatch: turn on the diagnostic payment log, repeat the checkout and filter by the new order number. The entries show the amounts and totals at each step.
- The payment form does not load, or an order is not confirmed: turn on Enable Debug and repeat the payment to see the answer of Authorize.net.
- A webhook does not update orders: turn on Enable Debug and check whether the webhook arrives and why it is rejected, for example a missing or invalid Signature Key.
Still need help?
Open a support ticket from your account and our team will look at your store with you.