Skip to main content

Official Python SDK for the OrvexPay Payment Gateway.

Project description

OrvexPay Python SDK

Official Python SDK for the OrvexPay Payment Gateway.

Installation

Install via pip:

pip install orvexpay

Usage

Synchronous Usage

from orvexpay import OrvexClient

client = OrvexClient(api_key="your-api-key")

# Create an invoice
invoice = client.create_invoice({
    "priceAmount": "100.00",
    "priceCurrency": "USD",
    "payCurrency": "USDT",
    "orderId": "ORDER-12345",
    "successUrl": "https://example.com/success",
    "cancelUrl": "https://example.com/cancel"
})

print(f"Invoice ID: {invoice['id']}")
print(f"Pay URL: {invoice['payUrl']}")

Asynchronous Usage

import asyncio
from orvexpay import OrvexClient

async def main():
    client = OrvexClient(api_key="your-api-key")
    
    invoice = await client.create_invoice_async({
        "priceAmount": "100.00",
        "priceCurrency": "USD",
        "payCurrency": "USDT"
    })
    
    print(f"Async Invoice ID: {invoice['id']}")

asyncio.run(main())

Features

  • Sync & Async: Built-in support for both synchronous and asynchronous workflows using httpx.
  • Type Safety: Fully type-hinted for better IDE support.
  • Easy Integration: Simple DTO pattern for API requests.
  • Error Handling: Detailed exceptions for API and network errors.

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

orvexpay-1.0.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

orvexpay-1.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: orvexpay-1.0.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for orvexpay-1.0.0.tar.gz
Algorithm Hash digest
SHA256 096b168b6e442f454931540f1be1c5192275bf48e0d8ab029baa6898e96bb0a7
MD5 142f7d14a77843e271ef3f22a9d644f7
BLAKE2b-256 77bca9197753d4d1e55f3d9dab70136382d5dd279880bafca9965e1fef92744d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: orvexpay-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for orvexpay-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e4b0864f85349dfa02d181711f6d9ef9e21850a2043dcafbbaa42a81445ff5c
MD5 34b8d54546010537f1eef39e794d4fa0
BLAKE2b-256 83074298304c38327868897d7eb88956d643a64e3123396943e2fafd57983bf8

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