|
Download services/wallet/README.md from AnthropicallyHuggingFaces/ProjectOS: direct link, hf CLI and curl.
- Browser
- Download file 1.65 kB
-
https://huggingface.co/spaces/AnthropicallyHuggingFaces/ProjectOS/resolve/main/services/wallet/README.md
- Command line
-
hf download hf://spaces/AnthropicallyHuggingFaces/ProjectOS/services/wallet/README.md
-
curl -L -o README.md https://huggingface.co/spaces/AnthropicallyHuggingFaces/ProjectOS/resolve/main/services/wallet/README.md
1.65 kB
@projectos/wallet
Personal-use wallet backend (TEST mode only): double-entry ledger, Stripe test funding (Checkout / PaymentIntents + signature-verified webhooks), QR-invoice payment routing, Supabase persistence. See root README "Wallet service" section.
Web UI
| Page | Purpose |
|---|---|
/ |
Wallet: balance, add funds (Stripe Checkout), pay invoice by QR payload, transactions, app links |
/devices |
Add / remove phones and devices (phone numbers normalised to E.164). Requires sign-in |
/settings |
Enter Stripe test keys and Supabase URL + service role key, test each connection, switch storage. Requires sign-in |
/funding/success, /funding/cancel |
Stripe Checkout return pages |
Admin passcode and secrets
- Set
ADMIN_PASSCODE(env / Space secret). Without it/settingsand/devicesare disabled. - Secrets typed on
/settingsare held server-side only. They are never returned to the browser (only a masked tail), never logged, and error text is redacted. Live Stripe keys (sk_live_/rk_live_) are refused. - To survive restarts the server writes them as Hugging Face Space secrets using
HF_SPACE_TOKEN+ the Space-providedSPACE_ID(the Space restarts after a save). Without a token they stay in memory only. Prefer a fine-grained token limited to this Space. - With
WALLET_STORE=memorybalances and devices reset on restart. Run the SQL insupabase/migrations/(downloadable from/settings), then switch storage tosupabasefor durable data. /wallet/test-credit(signed in) adds simulated test credit so the wallet can be exercised before Stripe is configured.