Skip to main content

Zibal payment platform

Project description

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))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for zibalPlatform, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size zibalPlatform-1.0.0-py3-none-any.whl (4.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size zibalPlatform-1.0.0.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page