The package dependency is pinned; configureDocumentation Index
Fetch the complete documentation index at: https://docs.unseen.finance/llms.txt
Use this file to discover all available pages before exploring further.
UnseenProvider so every hook knows your baseUrl, then mount UnseenPayButton—ideally feeding createPaymentSession wired to @unseen_fi/sdk as described under architecture.
UnseenProvider
Wrap any subtree that consumes Unseen hooks or components. Props (seeUnseenProviderConfig):
| Prop | Purpose |
|---|---|
apiKey | Optional bearer key for browser-created sessions. Omit in production storefronts — use createPaymentSession instead. |
baseUrl | HTTP origin used for REST calls (defaults to https://unseen.finance). |
UnseenPayButton
Opens a modal workflow: create payment → wallet picker (Phantom / Solflare / Backpack) → QR / deeplink → user confirms → polling verify loop. Important props (UnseenPayButtonProps):
| Prop | Description |
|---|---|
amount | Amount in smallest token units |
reference | Stable internal order identifier |
description | Shown during checkout creation |
mint, expiresIn | Optional overrides |
createPaymentSession | async (input) => PaymentResult — recommended hook to server-side @unseen_fi/sdk |
Callbacks onCreated, onSuccess, onError, onDismiss | |
Presentation: label, className, disabled |
Server-driven session creation
{ id, checkoutUrl, paymentToken?, ...fields used by callbacks }.
Wallet logos
Bundled picker references/wallets/phantom-logo.jpg, /wallets/solflare-logo.svg, and /wallets/backpack-logo.svg. Host copies under your app’s public/ directory or adjust asset URLs in release notes for your fork.
Next: Hooks & wallets