Skip to main content

Zibal Payment Gateway

N|Zibal

Installation

Zibal Platform pacakge requires Requests to run.

Install the package using pip

$ pip install zibalPlatform

For upgrading to newer versions

$ pip install zibalPlatform --upgrade

Usage

You can access Zibal.ir platform API using this package. Also you can use this package to translate the result codes to printable messages. Pass your "access-token" while creating a zibalPlatform instance.

Below is an example of how you can use this package to access 'wallet/list' endpoint

import zibalPlatform.zibalPlatform as zibalPlatform

access_token = 'Your access-token'
platform_endpoint = 'v1/wallet/balance'

zb = zibalPlatform.zibalPlatform(access_token)
data = {
    "id": "1010101",
}

request_to_zibal = zb.sendRequestToZibal(path=platform_endpoint, parameters=data)

Now you can access the parameters like this example

result_code = request_to_zibal['result']

Pass the result code to the translator function "platform_result(result_code)" to receive printable output Python3 example:

print(zb.platform_result(result_code))

Release files for zibalPlatform 1.0.0

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

Source distribution (sdist)

Source distribution for zibalPlatform 1.0.0
File Size Uploaded
zibalPlatform-1.0.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zibalPlatform 1.0.0
File Interpreter ABI Platform
zibalPlatform-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / zibalPlatform-1.0.0.tar.gz

Download URL zibalPlatform-1.0.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6224b2949cb6aed0aa4766199566c676cc8a1dc1c3aa028ca09b13288ace34e3
BLAKE2b-256 checksum
How to use checksums
1794716507959c298b7f0fc33af60920168953d2e18249b5cb87d590708d832c
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 / zibalPlatform-1.0.0-py3-none-any.whl

Download URL zibalPlatform-1.0.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a337e8b2b751f8ed2a68a9cc46ecebdddc7de949e40eb50edaa9014086a7c7a
BLAKE2b-256 checksum
How to use checksums
f3b65f44c4fd947ab5228ff539430a26a63d743bcffcd06de8580fb9c97fe647
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 history Release notifications | RSS feed

This release

1.0.0 This release

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