Skip to content

Troubleshooting

  • Check the mode: sandbox credentials only work in test mode and live credentials only in live mode.
  • Check for spaces before or after the client ID and secret.
  • The Log tab shows TrueLayer’s answer (masked), including its trace_id; give that id to TrueLayer Support if you contact them.
  • 401 Invalid header Tl-Signature: the signing key and the Key ID (KID) do not belong together, or the public key was not uploaded to the Console app of the same mode. Upload the public key shown on the Connection page, copy the KID Console shows, save and test again.
  • The signing key must be an EC key on the P-521 curve: create the key with openssl ecparam -genkey -name secp521r1 -noout (TrueLayer signs with ES512) or let the add-on generate one.
  • 400 ... merchant_account_id: the GBP / EUR merchant account ID is wrong for this mode. Clear the field and press “Save and test” to fill it from your account.
  • Your server must be able to reach TrueLayer over HTTPS (outgoing port 443) and have a current CA bundle.

The method is hidden when the add-on is disabled or unlicensed, when the connection of the current mode is incomplete (client ID, secret, KID and signing key are all needed), when the order currency is not GBP or EUR, or when no merchant account is set for that currency in the current mode.

The customer is redirected back but the order stays open

Section titled “The customer is redirected back but the order stays open”

The bank has accepted the payment but it has not settled yet, or the webhook has not arrived. Open the order’s TrueLayer payment tab and press Check status at TrueLayer; the cron also re-reads open payments every few minutes. Check that cron runs (Jobs counts) and that the webhook address of the mode is entered in Console.

“The payment read back from TrueLayer does not match this transaction”

Section titled ““The payment read back from TrueLayer does not match this transaction””

The add-on compares every payment it reads with its own record (payment id, amount, currency, merchant account and the kv_txn / kv_shop metadata it sent). A mismatch is ignored and logged: it means another shop uses the same TrueLayer client ID and webhook, or something tampered with a payment id. Use one TrueLayer app per shop.

  • The Webhook URI in Console must be exactly the address on the Connection page for the mode of that app (m=test for the sandbox app, m=live for the live app) and reachable from the internet, not behind a login, an IP filter or a redirect that changes the path (TrueLayer signs the path it posts to).
  • The add-on verifies the signature with TrueLayer’s published key set (https://webhooks.truelayer.com/.well-known/jwks, sandbox: https://webhooks.truelayer-sandbox.com/.well-known/jwks); your server must be able to reach that address.
  • Rejected events are listed in the log with the action “webhook”, at most one row per minute.

A refund is “creating” or “pending”

Section titled “A refund is “creating” or “pending””

The row is written before the request is sent. “creating” with a time means the answer did not arrive: the queue looks the refund up in TrueLayer’s refund list and finishes it with the same idempotency key, never sending a second one. TrueLayer says a refund can take up to 24 hours to reach its final state. A “failed” refund does not count against the payment: refund again.

Two payments for the same order both settled. The first one marked the order paid; refund the other one on its tab.

TrueLayer reported that the bank reversed a settled payment (the money went back to the customer). The order is not changed automatically; the reason is on the tab and in the log.

A job is “Waiting to retry” or “Gave up”

Section titled “A job is “Waiting to retry” or “Gave up””

The last error is shown in the list. Fix the cause (credentials, key, provider outage) and press Retry.

The key in the address is wrong. Copy the address again from the settings page.

Contact us through https://cs-cart.kaviolabs.com with the add-on version, the CS-Cart version and the relevant log lines (secrets are masked automatically).