Minimal FastAPI example for U.CASH Pay. Client-side pay link + server-side tracked checkout. Non-custodial.
pip install -r requirements.txt
export UCASH_CLOUD_TOKEN=your_store_cloud_token
uvicorn app:app --reload # http://localhost:8000GET /pay?amount=10¤cy=USD&title=Pro+plan-> 302 to hosted checkout (client-side embed link).POST /api/checkoutJSON{amount, currency, external_reference, title, redirect}->{ok, payment_url}(server-sidecreate-transaction, idempotent).
- Sign up at pay.u.cash, click the verification email link.
- Set receive addresses under Settings -> Addresses (raw, ENS, UD, or FIO).
- Create a store under Account -> Stores, copy its Store Cloud Token.
- For cards, connect your own Stripe under Settings -> Payment processors.
License: MIT.