Minimal Flask example for U.CASH Pay. Shows both integration styles: a client-side pay link (no server secret) and a server-side tracked checkout. Accept crypto + cards. Non-custodial.
pip install -r requirements.txt
export UCASH_CLOUD_TOKEN=your_store_cloud_token
python app.py # http://localhost:5000GET /pay?amount=10¤cy=USD&title=Pro+plan-> 302 redirect to the hosted U.CASH checkout (client-side embed link, publishable token).POST /api/checkoutJSON{amount, currency, external_reference, title, redirect}->{ok, payment_url}(server-sidecreate-transactionagainst/payment/ajax.php, idempotent).
- Sign up at pay.u.cash, then click the verification email link.
- Set receive addresses under Settings -> Addresses (raw address, ENS, Unstoppable Domains, or FIO).
- Create a store under Account -> Stores and copy its Store Cloud Token.
- For fiat cards, connect your own Stripe under Settings -> Payment processors.
License: MIT.