Skip to main content

Python implementation of OxaPay (https://oxapay.com) pubilc API

Project description

PyPi Package Version Supported Python versions PyPi downloads

pyOxaPayAPI

Python implementation of OxaPay pubilc API

This library is based on oxapay_api implementation. Was forked here due to slow PR acceptance.

This library is ACTUAL and is supported. If you need some not implemented methods - just open an issue.

Installation

Installation using pip (a Python package manager):

$ pip install pyOxaPayAPI

Usage

Everything is as simple as the API itself.

  1. Create pyOxaPayAPI instance
  2. Access API methods in pythonic notation (e.g. "Creating an invoice" -> create_invoice())
  3. Most methods return result as correspondent class, so you can access data as fields
from pyOxaPayAPI import pyOxaPayAPI
client = pyOxaPayAPI(
    "xxxxxxx",                   # Merchand API key
    general_api_key="xxxxxxx",   # General API key (for account methods like "balance")
    payout_api_key="xxxxxxx")    # Payout API key (for payout methods)
balances = client.get_account_balance(currency=currency.name)
for currency, balance in balances["data"].items():
    print("Merchant balance: {} {}".format(balance, currency))

You can also check tests.py.

Exceptions

Exceptions are rised using pyOxaPayAPIException class.

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

pyoxapayapi-0.1.0.tar.gz (9.3 kB view details)

Uploaded Source

File details

Details for the file pyoxapayapi-0.1.0.tar.gz.

File metadata

  • Download URL: pyoxapayapi-0.1.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for pyoxapayapi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f8eb57e01af3bcc9a0b5bbcc82ecd8a2a5e8a506237cd05588e527f19708945d
MD5 da38d0b107feeda1ee6f864b510722c6
BLAKE2b-256 08af661942bd69dbd0eb05aeea6bc719c59782d2193a6d30eb7a41baba3daf97

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