> ## Documentation Index
> Fetch the complete documentation index at: https://docs.payunifi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Development

> Plan a secure UniFi payment integration and follow each transfer through finality.

UniFi supports product teams that need stablecoin payments without pushing wallet and settlement
complexity into every customer journey. Use the web app for operator workflows and the API for
server-side integrations.

## Choose an integration surface

> [card] [Web app](https://docs.payunifi.com/webapp/overview.md)
>
> Manage balances, payments, requests, receipts, and API access from the UniFi interface.

> [card] [API](https://docs.payunifi.com/api-reference/introduction.md)
>
> Build payment operations into a trusted service using an account API key.

## Integration flow

**1. Create API access**

Sign in to UniFi, open **More → API**, and create a key for the service that will call the API.

**2. Collect payment details**

Define the stablecoin, network, recipient, amount, fee mode, and any reference your product
needs to reconcile the transfer.

**3. Authorize the payment**

Keep approval in the account's security boundary. Email accounts use authenticator approval;
connected wallets approve and sign through the wallet when required.

**4. Store the receipt ID**

Save the returned receipt identifier with your own order or invoice record. It is the stable
reference for status checks and support.

**5. Wait for finality**

Treat `Submitted` and `Confirmed` as in progress. Complete the business action only after the
receipt reaches `Finalized`.

## Recommended boundary

```text theme={null}
Your client → Your trusted backend → UniFi API → Network settlement → Receipt
```

Keep API keys in a trusted backend. Do not embed them in browser code, mobile binaries, public
configuration, analytics events, or shared logs. Wallet signatures belong in the user's wallet;
UniFi never needs a seed phrase or private key.

## Design for asynchronous settlement

Submission and finality are separate events. Your integration should persist the receipt ID,
display an in-progress state, tolerate repeated status checks, and make the final business action
idempotent. A retry must not create a second order or release the same goods twice.

> [!NOTE]
>
> Use the API base URL and credentials issued for your UniFi deployment. Credentials are scoped to
> their assigned environment and should not be mixed across deployments.

## Continue building

> [card] [Understand the lifecycle](https://docs.payunifi.com/concepts/how-unifi-works.md)
>
> Follow a payment from review and authorization to confirmation and finality.

> [card] [Secure the integration](https://docs.payunifi.com/concepts/security-and-permissions.md)
>
> Review account authorization, API-key handling, and wallet-signature boundaries.


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