Zibal Payment Gateway
Installation
Zibal Payment pacakge requires Requests to run.
Install the package using pip
$ pip install zibal
For upgrading to newer versions
$ pip install zibal --upgrade
Usage
You can send a request and verify your payment using this package. Also you can use this package to translate the result codes to printable messages Pass your merchant_id and callback url while creating a zibal instance
import zibal.zibal as zibal
merchant_id = 'Your merchant id, use zibal for testing'
callback_url = 'https://yourdomain.com/callbackUrl'
zb = zibal.zibal(merchant_id, callback_url)
amount = 30000 # IRR
request_to_zibal = zb.request(amount)
Now you can access the parameters using
track_id = request_to_zibal['trackId']
request_result_code = request_to_zibal['result']
Pass the result code to the translator function "requeset_result(result_code)" to create printable output Python3 example:
print(zb.request_result(request_result_code))
Verify the payment using the verify function
verify_zibal = zb.verify(track_id)
verify_result = verify_zibal['result']
Now you can access the parameters using
ref_number = verify_zibal['refNumber']
verify_result_code = verify_zibal['result']
Pass the result code to the translator function "verify_result(result_code)" to create printable output Python3 example:
print(zb.verify_result(verify_result_code))
Metadata
Release files for zibal 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zibal-1.1.0.tar.gz | 3.0 kB | Without provenance | Details for zibal-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zibal-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for zibal-1.1.0-py3-none-any.whl |
Total release size: 6.7 kB
Release files / zibal-1.1.0.tar.gz
| Download URL | zibal-1.1.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f46f495f41b78cae0f2566985826af04294bbbb3b1ee7ec2ee1b64ff62bffa4f
|
|
BLAKE2b-256 checksum How to use checksums |
35c6ba9426ffd658f010696c81b98061f549552584833173c4a0925de573389f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2
|
Release files / zibal-1.1.0-py3-none-any.whl
| Download URL | zibal-1.1.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ebf4bdfee5bc087fd7a7cc3042877e1655070849a1bf4cd35e7c0ea77210e50d
|
|
BLAKE2b-256 checksum How to use checksums |
862cd97c1694ab7a05e53c41e8abe7959cbff20d607b5676369d2ff711ce3e66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.2
|
Security for zibal 1.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.