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.1.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.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: notrix-0.5.1.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.1.tar.gz
Algorithm Hash digest
SHA256 2a9748c2424d094a398c1fae4dddf2edf9612181e44f40f31761d1204b953a11
MD5 07e524385ca925d0dda6a2bffad37b40
BLAKE2b-256 8ffe10e77c9519a9026ba7945c68239f4f5815cf7defe7f9d89d61ef969da0b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: notrix-0.5.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 221b01858121c295d94603ecab677920c241223663176db58e0466a9bc263b4c
MD5 43a953419c87eab100927fef333a81a5
BLAKE2b-256 c28de246983953f1783df137f42a99529bfd711ffbb1cc8159a2d561b372ca10

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