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

# Add TSN to a merchant checkout

> Connect a wallet-to-TIN payment to an order and fulfill it after the TIN credit settles.

Add **Pay with TSN** to a checkout where a customer pays from a Solana wallet to your merchant's TIN. Use your existing order record to resume the payment and fulfill it when both Solana transactions finalize.

## Merchant checkout

1. **Show the recipient and price.** Resolve the merchant's TIN on your backend. Show the TIN, returned display name, token, amount, and fee before any wallet prompt. [Resolve a TIN](https://trust-link-tsn.mintlify.site/developers/private-tin-issuance.md)
2. **Link the order to the payment.** Allocate one TSN payment ID for the order's current payment attempt. Ask the customer to sign the payment details and save the returned funding work ID on the order. [Request wallet approval](https://trust-link-tsn.mintlify.site/sdk/payment-guide.md)
3. **Enable Approve funding.** When the work reaches `FUNDING_READY`, use that same work ID to request the deposit signature and submit the signed deposit.
4. **Fulfill after settlement.** On your backend, use the saved work ID to check both transaction signatures for finality. Apply fulfillment once per order ID even if the status check runs again. [Verify the payment in TypeScript](https://trust-link-tsn.mintlify.site/developers/payment-intent-lifecycle.md#verify-the-payment-before-fulfillment)

## Handle a customer returning to checkout

Resume from the order's saved work ID. If funding confirmed and settlement is pending, display **Deposit received. Credit pending.** and keep checking the same ID. When a request times out, look up the original result before requesting fresh approval. [Retry a payment safely](https://trust-link-tsn.mintlify.site/developers/replay-and-retries.md)

## Connect the application

Use your Receiver base URL for status checks and that URL plus `/node` for payment requests. Keep service credentials and recipient lookup secrets on your backend. Keep the private note and signed completion in the protected payment flow and out of order metadata and analytics. [Check TSN network status](https://trust-link-tsn.mintlify.site/developers/getting-started.md) · [Service API reference](https://trust-link-tsn.mintlify.site/api-reference/services.md)


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