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-1.0.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.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: notrix-1.0.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.0.0.tar.gz
Algorithm Hash digest
SHA256 f1c09fe922aed04ca4cbf04e9f7965ff219da1368d449e8ab9d3071a1d58037a
MD5 5dfa94a2132011fcb3e878fdfa41ee09
BLAKE2b-256 bc64d193a4fa320be2da85b3f28aaad72f657f98e85507e81f9dfb946e3c4ea2

See more details on using hashes here.

File details

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

File metadata

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

Hashes for notrix-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7fe673f6663527852ba76047e31ffc54f0773ee641c61a497a47bc14b1e7562
MD5 e2ebed7e509401046dc9266a50383803
BLAKE2b-256 70708321d1010086b4acf888580ea00091c3a67a2685a3f3e1e247906acff8fa

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