Skip to main content

A client library for Monobank merchant API

Project description

py_mono_bank_pay

A client library for Monobank merchant API.

Installation

Install the package using pip:

pip install py_mono_bank_pay

Usage

from py_mono_bank_pay import Client, Payment

Initialize Client

client = Client('your_token')

Use the Client

merchant_id = client.get_merchant_id()

merchant_name = client.get_merchant_name()

print(f'Merchant ID: {merchant_id}, Merchant Name: {merchant_name}')

Initialize Payment

payment = Payment(client)

invoice = payment.create(1000)

print(invoice)

Webhook signature verification

request_body = request.body x_sign_base64 = request.headers.get('X-Sign')

client = Client('your_token')

is_verified = client.verify_signature(request_body, x_sign_base64)

print(is_verified)

##License This project is licensed under the MIT License - see the LICENSE file for details.

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

py_mono_bank_pay-0.1.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

py_mono_bank_pay-0.1.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file py_mono_bank_pay-0.1.1.tar.gz.

File metadata

  • Download URL: py_mono_bank_pay-0.1.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.8.2

File hashes

Hashes for py_mono_bank_pay-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8c0ccc7041cf9dd7ea24eb7e07e68709322dff88d577e4b3362ada25cce5d472
MD5 f9f626cfa4ad6063ac5f2864ddd3f1ea
BLAKE2b-256 c591fa3cec6c9577bf0aa48049f349d3b2dcb76f4b3a4ef3682544ddeb757958

See more details on using hashes here.

File details

Details for the file py_mono_bank_pay-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for py_mono_bank_pay-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db68f14f2c475bede194abca942174399cd5ab23bc824d0102c3ecdc01341c23
MD5 03edafc6efd1782618e8dc8e2d5e682a
BLAKE2b-256 61f6bc6026ddc0d4b6f30dd4ea28c9fdda0f9bd1d0507b26362c934cf9fc9fbe

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