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.1.0.tar.gz (4.2 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.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_mono_bank_pay-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 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.0.tar.gz
Algorithm Hash digest
SHA256 7a0684d7ed14ea3fb2a07585d468737017da84acc5b764951fec87cfb78a17e1
MD5 601383c16936db7d8855185bebeea6f6
BLAKE2b-256 38054ce388a9e4901f9ad1021b23530faa661b6c02c5e91d4ce4e602cde2f847

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_mono_bank_pay-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf746bc3a634b8351c7592957af856ee5513a993fb0bfbe0a8bed4eefcc4a300
MD5 ac7420e5fe6e36b3eda1662cb8dcf925
BLAKE2b-256 0a63cafb18a1b8696073ddc2fe7d9bafa9765b12e55944e27861bc16dee01436

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