Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ucashpay-flask

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.

Run

pip install -r requirements.txt
export UCASH_CLOUD_TOKEN=your_store_cloud_token
python app.py   # http://localhost:5000

Routes

  • GET /pay?amount=10&currency=USD&title=Pro+plan -> 302 redirect to the hosted U.CASH checkout (client-side embed link, publishable token).
  • POST /api/checkout JSON {amount, currency, external_reference, title, redirect} -> {ok, payment_url} (server-side create-transaction against /payment/ajax.php, idempotent).

Set up your pay.u.cash account

  1. Sign up at pay.u.cash, then click the verification email link.
  2. Set receive addresses under Settings -> Addresses (raw address, ENS, Unstoppable Domains, or FIO).
  3. Create a store under Account -> Stores and copy its Store Cloud Token.
  4. For fiat cards, connect your own Stripe under Settings -> Payment processors.

License: MIT.

About

Flask example for U.CASH Pay: client-side pay link + server-side checkout. Non-custodial.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages