Skip to main content

Notrix Official Python SDK

Project description

Notrix Python SDK

Installation

pip install notrix

Basic usage

from notrix import Client

client = Client("NOTRIX_SECRET_KEY")
payment_page = client.create_payment_page(
    title="Bike",
    description="My amazing bike",
    image=open("bike.png", 'rb'),
    price=1.5,  # USD,
    webhook_url="https://example.com/webhooks/notrix/"
)

print(payment_page.link("1234"))  # Payment link with user_id 1234 (will be sent in the webhook)
print(payment_page.price)  # The price in USD
print(payment_page.webhook_url) 
print(payment_page.uuid)

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

Uploaded Source

Built Distribution

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

notrix-0.5.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: notrix-0.5.2.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/6.2.0-26-generic

File hashes

Hashes for notrix-0.5.2.tar.gz
Algorithm Hash digest
SHA256 4aa6df2203a223389849b77672cf763af5a5998b708a87528450a3a2dfc2bcd0
MD5 7d428924b3b81fcec089f872ea0cdf14
BLAKE2b-256 d611e4e644eb58b82d93aaf28b8e3d33fd37f2fadb84edcdacbbd913e2a29c37

See more details on using hashes here.

File details

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

File metadata

  • Download URL: notrix-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/6.2.0-26-generic

File hashes

Hashes for notrix-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a2ca1eb98b62457bd093e0ab3b925d69ddb849dd09ccf95a46606b2be5408ea7
MD5 21ac509aa57666c42ca9211ddfe503ef
BLAKE2b-256 a6da5f4e50bd294b51ad69c4ec891f34c999e1bbc26f30f6ed8a3a821296885e

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