Skip to main content

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


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.2.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

notrix-1.2.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file notrix-1.2.0.tar.gz.

File metadata

  • Download URL: notrix-1.2.0.tar.gz
  • Upload date:
  • Size: 2.2 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

Hashes for notrix-1.2.0.tar.gz
Algorithm Hash digest
SHA256 c9d1a3fd9ecc12aa964c70f6c74174b60c2ee2250f9a9424b91b46184517dd26
MD5 07ad6dab0f5d073b76e90f61f5917250
BLAKE2b-256 c862dd6561dc9bd0437b40097d9abf0a7786ef68b6fca002ca732a56f5343740

See more details on using hashes here.

File details

Details for the file notrix-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: notrix-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 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

Hashes for notrix-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e188e1d1796e300b05e6552720d85c68b7602b8fa6eed37594544f5faacfffff
MD5 e6cfccb2abee599fdb4b05ead09dfbb6
BLAKE2b-256 0fa49ae68e712a77daa55f5c69893e8e46d84819266505378f249b02591728b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page