Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ucashpay-django

Django views for U.CASH Pay: a client-side pay-link redirect and a server-side tracked checkout. Non-custodial.

Use

  1. pip install -r requirements.txt
  2. Copy views.py into one of your apps and wire the two views into urls.py (snippet in views.py docstring).
  3. export UCASH_CLOUD_TOKEN=your_store_cloud_token
  • GET /pay/?amount=10&currency=USD&title=Pro+plan -> 302 to hosted checkout.
  • POST /api/checkout/ JSON {amount, currency, external_reference, title, redirect} -> {ok, payment_url}.

Set up your pay.u.cash account

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

License: MIT.

Releases

Packages

Contributors

Languages