Skip to main content

QPay Python

ci status codecov
pypi link supported python versions

Ашиглах • Хөгжүүлэлтэнд оролцох • Лиценз

QPay v2 гүйлгээний сервисүүдийг Python хэлний орчинд ашиглахад зориулсан сан

QPayClient -г ашиглах

Хамгийн эхлээд QPayClient -с объект үүсгэж авна. Ингэхийн тулд KKTТ ХХК -тай гэрээ хийн нэр, нууц үг авсан байх шаардлагатай. Нэг л удаа үүсгээд авчихсан байхад токен дуусах, сунгах зэрэг дээр санаа зовох шаардлагагүй.

import qpay import QPayClient

client = QPayClient.instance(host="https://merchant.qpay.mn/v2/", username="MERCHANT_USERNAME", password="MERCHANT_PASSWORD")

...

QPayClient нь singleton paradigm -г ашигладаг учир нэг л объект үүсгэж, тэрийгээ дахин ашиглана. Шаардлагатай сервисүүдийг үүсгэсэн объектоороо дамжуулан дуудна.

...

payload = {"invoice_code": ... }
invoice = client.invoice_create(json=payload)
print(invoice.qr_text) # 0002010102121531279404962794049600000000KKTQ...

...

Хөгжүүлэлтэнд оролцох

Энэхүү сантай холбоотой алдаа засвар, сайжруулалт болон бусад санал, хүсэлтийг нээлттэй хүлээж авах ба ялангуяа чанартай кодын өөрчлөлтүүд илгээвэл маш их баярлах болно.

Жич: Кодын өөрчлөлт оруулахдаа заавал тестийг нь хамт оруулахаа битгий мартаарай.

Лиценз

MIT License

Metadata

Release files for qpay-python 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qpay-python 0.0.5
File Size Uploaded
qpay_python-0.0.5.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qpay-python 0.0.5
File Interpreter ABI Platform
qpay_python-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 11.2 kB

Release files / qpay_python-0.0.5.tar.gz

Download URL qpay_python-0.0.5.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a43eef0ab72580a10974e8ff4e58ba70abe5f61dcc5c38fcca4be175e9e0bf66
BLAKE2b-256 checksum
How to use checksums
d4dd813821b84099d36ff87f53ebd261cc26f23d727ade400e2656cf22ffc526
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 1, 2025.

Transparency log

Release files / qpay_python-0.0.5-py3-none-any.whl

Download URL qpay_python-0.0.5-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39794a1aa0b3f677d36489091ee61745b702bcaac6135c37398d43c9fceb98c0
BLAKE2b-256 checksum
How to use checksums
5c5f10027017e9b176b5a27c568eeded72cb19127e54ad264491e9f68deeb7d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 1, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page