Python SDK
A single-module client for Python 3.8+ using only the standard library.
- Type
- Library
- Category
- Developers
- Download
- 3 KB
- Price
- Free
Set it up in 4 steps
- 1
Copy cryptain.py into your project.
- 2
Create an API key in Cryptain (Stores → your store).
- 3
Create an invoice and redirect to its checkout_url.
- 4
Verify webhooks with verify_webhook() before fulfilling the order.
from cryptain import Cryptain
c = Cryptain('https://cryptain.net', 'pk_...', 'sk_...')
invoice = c.create_invoice(amount='25.00', currency='USD', order_id='1001')
return redirect(invoice['checkout_url']) Open an account in two minutes
शुरुआत मुफ़्त। हर पेमेंट पर 1%। कभी भी अपग्रेड करें।