Iran Kish payment portal python package
Project description
IranKish Payment Portal Python Package
This Python package allows users to easily integrate with the Iran Kish payment gateway for sending payment requests and processing transactions. The package also includes encryption functionality using AES, RSA, and SHA-256 for secure communication with the bank.
Features
- Sending payment requests to Iran Kish gateway.
- Encryption using AES, RSA, and SHA-256 for secure communication.
Installation
Install the package via pip
pip install iran-kish-py
Make sure you also have pycryptodome installed for encryption:
pip install pycryptodome
Usage
Sending request to bank
from iran_kish_py import request_payment
pub_key_pem = """GIVEN PUB KEY FROM BANK"""
BANK_RESPONSE = request_payment(
terminal_id="PAYANE",
acceptor_id="PAZIRANDE",
password="PASSWORD",
amount=1000, # IRR
pub_key_pem=pub_key_pem,
request_id="12334", # length 20
revert_uri="https://example.com" # callback url
)
print(BANK_RESPONSE)
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iran_kish_py-1.0.1.tar.gz.
File metadata
- Download URL: iran_kish_py-1.0.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec7f33a2e79c9478beb5f589d19ddeb16c911823ac2b9cd31189b1f43ea2b1ca
|
|
| MD5 |
5d02303491ba73326ec64f4f9d223a2d
|
|
| BLAKE2b-256 |
b8c19383a2de0ce2e19c55a6afc5a0ac7c3fba8e10839a9b6e48716dcd96461f
|
File details
Details for the file iran_kish_py-1.0.1-py3-none-any.whl.
File metadata
- Download URL: iran_kish_py-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
695b1b81fd6ed97e6b0ee5a10c859392297fcb4a340bcf6115f646de603728b8
|
|
| MD5 |
770def4253cb1f1074c0b3ce5a353b27
|
|
| BLAKE2b-256 |
1b4aab1754ec6a621f395b538922e00caddc2695b9a9dd7fa744d679bc676210
|