> ## Documentation Index
> Fetch the complete documentation index at: https://trust-link-tsn.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Troubleshoot a payment

> Recover an interrupted wallet payment, pending settlement, or unavailable TIN balance.

Look up the original payment to see where it stopped. Set `TSN_RECEIVER_URL` to the Receiver used for the payment and `WORK_ID` to the funding work ID returned by your intent request.

```bash theme={null}
curl -fsS "${TSN_RECEIVER_URL%/}/api/work-status/${WORK_ID}"
```

Read `status` for funding and `settlement.status` for credit once a settlement is linked. Keep any signatures in `result.signature` and `settlement.result.signature`. [Payment states](https://trust-link-tsn.mintlify.site/developers/payment-intent-lifecycle.md).

## Recipient or amount rejected

Resolve the TIN again through your trusted backend. Pass the ten-digit TIN as `recipientTin` and its resolved 32-byte hexadecimal owner commitment as `recipientHash`. For an amount error, use an accepted mint and its registered precision. Show the corrected recipient, amount, and fee before asking for a new payment approval. [Recipient lookup](https://trust-link-tsn.mintlify.site/developers/private-tin-issuance.md) · [Payment example](https://trust-link-tsn.mintlify.site/sdk/payment-guide.md)

If the SDK rejects the signed deposit, check the original status before asking the wallet to sign again. Rebuild it with the approved TCAP deposit and any valid, nonduplicate Compute Budget instructions the wallet needs. Remove extra transfers and invalid compute settings.

## HTTP failures and timeouts

If the response is lost, keep the same payment ID, work ID, and pending request. Check the original status before creating another payment. Repeat the request for the step that timed out. [Safe retries](https://trust-link-tsn.mintlify.site/developers/replay-and-retries.md).

For a returned error, use the status and response body from `TsnHttpClient` to select the recovery action. Set a request deadline in your app and keep private request and response fields out of logs. [Service errors](https://trust-link-tsn.mintlify.site/api-reference/services.md) · [Client configuration](https://trust-link-tsn.mintlify.site/sdk/configuration.md#client-authentication-and-timeout)

## Stale signed funding

* **HTTP 409 · `FUNDING_BLOCKHASH_TOO_OLD_BEFORE_ATTACHMENT`.** Fetch current readiness for the same intent and request a fresh wallet signature after every previous completion attempt has been confirmed as a pre-attachment refusal. If any earlier response is uncertain, reconcile that attempt first.
* **HTTP 503 · `FUNDING_BLOCK_HEIGHT_UNAVAILABLE_BEFORE_ATTACHMENT` or a lost completion response.** Check the original work. For a retry, send the exact saved completion with its signed transaction and `senderFundingBlockhashContext`.
* **Funding `FAILED` with a candidate signature.** Check the signature on the intended Solana cluster before approving a replacement. Preflight refusal and a broadcast with an uncertain result can both report a candidate signature. [Cranker diagnostics](https://trust-link-tsn.mintlify.site/operators/tsn-cranker.md).

Fetch the blockhash when **Approve funding** starts and keep its issued hash, height, and slot together. If you see `BlockhashNotFound`, check the original attempt and RPC cluster before asking for a fresh signature. [Funding completion API](https://trust-link-tsn.mintlify.site/api-reference/services.md#owner-funding-readiness-and-completion).

## Funding confirmed, settlement incomplete

Keep the existing deposit and check the linked settlement. If settlement reports `REJECTED` or `FAILED`, give the operator the funding and settlement work IDs, the funding signature, and the sanitized error. If that settlement has a signature, check it on Solana and share the result. The operator can reconcile a matching finalized receipt or recover an eligible rejected settlement. [Receiver recovery](https://trust-link-tsn.mintlify.site/operators/receiver.md#observe-and-diagnose).

## XP balance is empty after a finalized credit

Connect the wallet registered to the TIN, select **Open balance** or **Refresh balance**, and approve the access messages. If the result is **Unavailable**, check that the wallet and TIN match and that the RPC provides the finalized receipts for that TIN. [Recover unavailable history](https://trust-link-tsn.mintlify.site/sdk/owner-balance.md#handle-unavailable-history).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.