Zibal payment platform
Project description
Zibal Payment Gateway
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))
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
zibalPlatform-1.0.0.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for zibalPlatform-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a337e8b2b751f8ed2a68a9cc46ecebdddc7de949e40eb50edaa9014086a7c7a |
|
MD5 | dc1b7d85d10f16a6e8cce8409ba5792c |
|
BLAKE2b-256 | f3b65f44c4fd947ab5228ff539430a26a63d743bcffcd06de8580fb9c97fe647 |