Python SDK for Finergy MIA POS eComm API
- Finergy MIA POS eComm integration: https://github.com/finergy-tech/mia-pay-ecomm-integration
- Finergy MIA POS eComm API https://github.com/finergy-tech/mia-pay-ecomm-integration/blob/main/docs/mia-ecomm-api_v0.0.1.html
- GitHub project https://github.com/alexminza/finergy-mia-pos-sdk-python
- PyPI package https://pypi.org/project/finergy-mia-pos-sdk/
Installation
To easily install or upgrade to the latest release, use pip:
pip install --upgrade finergy-mia-pos-sdk
Getting started
Import SDK:
from finergy_mia_pos_sdk import FinergyMiaPosSdk
Add project configuration:
import os
FINERGY_MIA_POS_BASE_URL = os.getenv('FINERGY_MIA_POS_BASE_URL', FinergyMiaPosSdk.TEST_BASE_URL)
FINERGY_MIA_POS_MERCHANT_ID = os.getenv('FINERGY_MIA_POS_MERCHANT_ID')
FINERGY_MIA_POS_SECRET_KEY = os.getenv('FINERGY_MIA_POS_SECRET_KEY')
FINERGY_MIA_POS_TERMINAL_ID = os.getenv('FINERGY_MIA_POS_TERMINAL_ID')
SDK usage examples
Initialize SDK instance
finergy_sdk = FinergyMiaPosSdk(
base_url=FINERGY_MIA_POS_BASE_URL,
merchant_id=FINERGY_MIA_POS_MERCHANT_ID,
secret_key=FINERGY_MIA_POS_SECRET_KEY)
Create order payment
payment_data = {
'terminalId': FINERGY_MIA_POS_TERMINAL_ID,
'orderId': 'order12345',
'amount': 150.75,
'currency': 'MDL',
'language': 'ro',
'payDescription': 'Payment for order #12345',
'paymentType': 'qr',
'clientName': 'Test Client',
'clientPhone': '00000000',
'clientEmail': 'test@test.com',
'callbackUrl': 'http://your_callback_url',
'successUrl': 'http://your_success_url?orderId=order12345',
'failUrl': 'http://your_failUrl_url?orderId=order12345'
}
create_payment_response = finergy_sdk.create_payment(payment_data=payment_data)
payment_id = create_payment_response['paymentId']
checkout_page = create_payment_response['checkoutPage']
Validate callback signature
callback_data = {
'result': {
'terminalId': 'TRMW0001',
'orderId': '108',
'paymentId': '2a663962-c954-4984-90e5-1d24c3305f7b',
'status': 'EXPIRED',
'amount': 1775.00,
'currency': 'MDL',
'paymentType': 'qr',
'paymentDate': '2024-12-17T11:54:23'
},
'signature': 'gtWkQdF2X2oCwO/+a+DJxpDc5DhjC1PMVWrnCXsCX54qOo24siRTy4PAjHoYet1r0KERVEL65p7UZuHcaK+TOiJptlalMUVZWbGLPf05WpyKPOPSPI1P4ZoADzJpceYsKjjZImB/+ft6OAF+ahxazhHkiT1Ze05vwD2L1D6zRohcxZl9XRJMChZcVD9bdNy23ozwuq6FwlnneJJeCPNvqveg7f5e0CD1NXWdLJ3WryP0ypcGtQGZAY+PrhkdVG5SWhYr0FFniAZIrp9yOFn3vrsUP4rpZmeqIahSV6x12pyyRsm+bs/tjw/kPR34ygG7ksXsrpwhQbltAHWeWwnOmg=='
}
validate_result = finergy_sdk.validate_callback_signature(callback_data=callback_data)
Get payment status
payment_status_response = finergy_sdk.get_payment_status(payment_id=payment_id)
For more examples see Finergy MIA POS PHP SDK
Metadata
Release files for finergy-mia-pos-sdk 1.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| finergy_mia_pos_sdk-1.1.3.tar.gz | 21.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| finergy_mia_pos_sdk-1.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.4 kB
Release files / finergy_mia_pos_sdk-1.1.3.tar.gz
| Download URL | finergy_mia_pos_sdk-1.1.3.tar.gz |
|---|---|
| Size | 21.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6d5ff34938d493bbcefcbdd96d1a6ab04974fbfe5083dcc04cef863f0fd89bb
|
|
BLAKE2b-256 checksum How to use checksums |
63699d9276ad32a64065604202b27b215f24ca9008830c711a912896bfe8697c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Sep 30, 2025.
Transparency logRelease files / finergy_mia_pos_sdk-1.1.3-py3-none-any.whl
| Download URL | finergy_mia_pos_sdk-1.1.3-py3-none-any.whl |
|---|---|
| Size | 22.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1123d40cde517345e3e99b37f745c3283c543b0156ad236f549c5390f3e746b8
|
|
BLAKE2b-256 checksum How to use checksums |
d1d6119ba9e3c38643ec696a0ee2a503760d416619b6a4caf5d5f4da12c501d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Sep 30, 2025.
Transparency log