Skip to content

What is TokenFlight?

TokenFlight Embed is a payment widget for token flows. You add it to your app, choose the flow you need, connect a wallet adapter, and let users pay, swap, or deposit with supported tokens.

What it does

TokenFlight helps your app handle three product jobs:

JobUse whenMain page
Receive / checkoutYour app needs an exact token amount, such as 100 USDCReceive / Checkout
SwapThe user chooses what they pay and previews the outputSwap
Card paymentsUsers should be able to pay by card, or choose card vs cryptoCard Payments

Crypto wallet flows require a wallet adapter. Card-only checkout is the main exception.

How it works

At a high level:

  1. Your app renders the widget with tokens, amount, and flow config.
  2. The widget requests quotes from the configured API.
  3. A wallet adapter connects the user's wallet for crypto flows.
  4. The widget builds, submits, and tracks the order.
  5. Your frontend receives callbacks for UI updates.
  6. Your backend verifies important payments before unlocking value.

How to read these docs

Start with the path that matches your question:

QuestionRead
I am new and want the first working widgetGetting Started
I do not know which product flow I needChoose your flow
I do not know which API style to useChoose your API
I need wallet connection to workWhy wallet adapters
I want code for my frameworkExamples
I am preparing for launchBackend Verification and Troubleshooting

Important words

  • flow: the product job, such as receive, swap, or card checkout.
  • walletAdapter: the object that lets the widget connect to wallets.
  • quote: the route and amount information returned before a user confirms.
  • callback: a function your app receives when something happens.
  • backend verification: your server checks payment status instead of trusting the browser.