> ## 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.

# How a wallet payment works

> Accept a token from a Solana wallet and track its credit to a recipient TIN.

Use a wallet-to-TIN payment when a sender pays from a Solana wallet and the recipient receives the token in their TIN balance. The sender approves the payment details first and signs the reserve deposit in a second prompt.

**1. Show the payment details**

Resolve the recipient TIN through your trusted backend. Show the TIN, the returned owner-provided name, the token, amount, fee, and expiry.

**2. Approve the payment message**

Ask the sender's wallet to sign the payment message. Submit it with its matching private funding note and save the funding work ID.

**3. Approve funding**

Show **Approve funding** when the request reaches `FUNDING_READY`. Fetch fresh preparation and a recent blockhash, then request the deposit signature and attach the signed transaction to the original work.

**4. Confirm the TIN credit**

Track the deposit and credit using the saved work ID. Fulfill the order after both transactions succeed and reach finality on your Solana RPC.

## Handle a pending payment

Once funding confirms, show **Deposit received** while the TIN credit is pending. If credit stops, keep the funded deposit and ask the operator to recover the original work. A refreshed checkout can read the same work ID. [Track a payment](https://trust-link-tsn.mintlify.site/developers/payment-intent-lifecycle.md)

Use the [wallet payment example](https://trust-link-tsn.mintlify.site/sdk/payment-guide.md) to implement both approvals. Use the [owner balance guide](https://trust-link-tsn.mintlify.site/sdk/owner-balance.md) to display the credited balance from finalized activity.


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