Usage
Daily use
Section titled “Daily use”- The customer chooses Pay by bank at checkout, is sent to TrueLayer’s hosted page, picks their bank, confirms the payment in the bank’s app or site and returns to your shop.
- The add-on reads the payment back from TrueLayer. The order becomes paid when the payment is settled in your merchant account (usually seconds for UK Faster Payments, longer for some euro payments). While the bank has accepted the payment but the money has not settled yet (“executed”), the customer sees the order page and the order stays open; the signed webhook or the cron then completes it.
- If the customer leaves the bank page without authorizing, the add-on cancels the payment at TrueLayer (allowed until the bank has authorized it), and if the bank declines the payment fails; in both cases the order is set to the failed or canceled status you configured, and the cart is kept so the customer can try again or choose another method. A payment that settles after the customer left is still booked.
- Open the order and the TrueLayer payment tab to see the status (TrueLayer’s own status and ours), the payment id, the amounts and the refunds.
Several attempts for one order
Section titled “Several attempts for one order”Each attempt is a payment of its own. Before a new payment is started for the same order the add-on reads the open attempts: a payment the bank has already authorised or executed blocks a new one (“being confirmed by your bank, do not pay again”), a fresh hosted page is reused, and an attempt that ends as failed or expired never fails an order that another attempt has paid. If two attempts both settle, the second is booked as a duplicate and flagged on the tab: refund it.
Refunds
Section titled “Refunds”On the TrueLayer payment tab enter an amount (empty = everything that is left) and a reason. Refunds go back to the bank account that paid, in the payment’s currency, up to the amount that is left (earlier refunds, also those made in Console, are subtracted). A refund is written down before it is sent and carries a unique idempotency key; the form carries a one-time token, so the same form sent twice, a timeout or a retry never refunds twice. A refund row that was never sent is closed as failed after 15 minutes and does not count. Generating a new key pair is refused while refunds are still being sent. TrueLayer says a refund can take up to 24 hours to reach its final state; the tab shows pending, authorized, executed or failed, and a failed refund does not count against the payment. A refund of a payment that has been reversed is not possible. If the payment is busy (a webhook or the cron is reading it) nothing is sent and you are asked to try again.
Refund in full when the order status becomes (settings) refunds a paid order once when you set that status.
Reversals and disputes
Section titled “Reversals and disputes”If TrueLayer reports that a settled payment was reversed (the money went back to the customer) the payment is marked Reversed and the reason is written on the tab and in the log; the order is not changed by it, so you decide what to do with the goods. A dispute is shown the same way.
Jobs, log and connection
Section titled “Jobs, log and connection”- Jobs: counts per state, the list with the last error, Retry, Remove and Run the queue now.
- Log: filter and export what happened and when; rejected webhook calls are logged at most once a minute.
- Connection: test and live credentials, key, merchant accounts, Test connection, the webhook and return addresses.
Testing in the sandbox
Section titled “Testing in the sandbox”Use the sandbox credentials and place an order in GBP or EUR. On TrueLayer’s mock bank page enter the user name test_executed (payment goes through), test_authorisation_failed, test_execution_rejected, or press cancel (TrueLayer docs, “Test payments in sandbox”). Sandbox payments above 5,000,000 minor units are refused by TrueLayer.