Django views for U.CASH Pay: a client-side pay-link redirect and a server-side tracked checkout. Non-custodial.
pip install -r requirements.txt- Copy
views.pyinto one of your apps and wire the two views intourls.py(snippet inviews.pydocstring). export UCASH_CLOUD_TOKEN=your_store_cloud_token
GET /pay/?amount=10¤cy=USD&title=Pro+plan-> 302 to hosted checkout.POST /api/checkout/JSON{amount, currency, external_reference, title, redirect}->{ok, payment_url}.
- 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.