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.1.0.tar.gz
(2.1 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.1.0.tar.gz.
File metadata
- Download URL: notrix-1.1.0.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/6.2.0-37-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4468d5b3d70c85f029d4364029d878385c8bc95048a71f8495c5b83d9b24a601
|
|
| MD5 |
077ccd130d4dea3b5ffcf748bb3966c1
|
|
| BLAKE2b-256 |
5e7652b7ac2d9640c7b21658f3c3a47c137f0571b7d7e19ee9e9c628c32745ef
|
File details
Details for the file notrix-1.1.0-py3-none-any.whl.
File metadata
- Download URL: notrix-1.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/6.2.0-37-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1394db34b59e09886319ff75a39c07bd45c64afcb1e29a7a23965a2a98203eaa
|
|
| MD5 |
0f71e53dac021e39b0f6ac7d9865fcf8
|
|
| BLAKE2b-256 |
b7acb4640618e9a379c85ff5215c3a4e7b6591f3ffa7f398afd077c394429b27
|