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.3.1.tar.gz (3.0 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.3.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: notrix-1.3.1.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

Hashes for notrix-1.3.1.tar.gz
Algorithm Hash digest
SHA256 a8d20966b24ec15f861aac256060b7d7b738e87ebb0d42b85d4889636470c001
MD5 ee38a7c1f89698c4b5926cfc14efa28f
BLAKE2b-256 bac719fc339aad9debeb58d9e35a1b427009d15c0f04e661318c280f21fa3fda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: notrix-1.3.1-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

Hashes for notrix-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3398d51227eec8292241185f60f3a6964d304d0c6511ce86b72962e458dc0664
MD5 f3dbb226648be24408d7de567b110a22
BLAKE2b-256 f01bd0f06d4af6aeb8e54bbe273e4e5eebaf72c42494fb9fac3d916c147727e0

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