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, Webhook

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)

Initialize Webhook

webhook = Webhook(client)

is_verified = webhook.verify()

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.0.4.tar.gz (4.0 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.0.4-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_mono_bank_pay-0.0.4.tar.gz
  • Upload date:
  • Size: 4.0 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.0.4.tar.gz
Algorithm Hash digest
SHA256 241a032eb5d6aad3bc23e9c210fdbd7636bed9e6f950e02f4bcb7669d424a2c4
MD5 723f89a00ecceb8b8fa03e195156e523
BLAKE2b-256 a1b00f3dec26e31c86febb5377279e56d97cdf47d0fcc5af686857fa4950fc1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_mono_bank_pay-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 58ddf3edf57a7d6c2620bf49b1e89723238f4206a3aa0e93d26efe03e83e1022
MD5 761bb7a37301ec5bb7069c050eef59ea
BLAKE2b-256 42d112f39f95041fbe0b74933657de08bccbf5b61d6be53be535c3fa2f24c968

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