Notrix Official Python SDK
Project description
Notrix Python SDK
Installation
pip install notrix
Basic usage
from notrix import Client, CheckoutSessionLineItem
client = Client("SECRET_API_KEY")
checkout_session = client.create_checkout_session(
success_url="https://myshop.com/successful-payment",
cancel_url="https://myshop.com/payment-canceled",
items=[
CheckoutSessionLineItem(
name="Bike",
description="green bike",
price=28.2, # USD
quantity=1,
image="https://images.com/bike",
)
]
)
print(checkout_session.link()) # Redirect the user to this payment page link in order to pay
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
notrix-1.3.0.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file notrix-1.3.0.tar.gz.
File metadata
- Download URL: notrix-1.3.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-25-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c93196641a8df16b467f2c004ca47eec46a310f5ad5e63db1bbeadf0a72729df
|
|
| MD5 |
6ba5c32d547b2c7f9e54e202b79987b0
|
|
| BLAKE2b-256 |
35ec1eeee97420a59be773f6c9cfbb06ed8886f285450fb6e48fbe31f931b2b9
|
File details
Details for the file notrix-1.3.0-py3-none-any.whl.
File metadata
- Download URL: notrix-1.3.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-25-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b44fbc4933438513424acc9bda179ae3e1fe013e5efda9a7ca0f084458792a85
|
|
| MD5 |
01ab7570ff815b38839961b9546c8d82
|
|
| BLAKE2b-256 |
0a7bb1241c0aeaa5fc1705ec960f013493181076fb8d492a23e8219e1d14cb73
|