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.

Source Distribution

zibalPlatform-1.0.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

zibalPlatform-1.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file zibalPlatform-1.0.0.tar.gz.

File metadata

  • Download URL: zibalPlatform-1.0.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for zibalPlatform-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6224b2949cb6aed0aa4766199566c676cc8a1dc1c3aa028ca09b13288ace34e3
MD5 db5fe42fb490e2be700588feaf6a84a4
BLAKE2b-256 1794716507959c298b7f0fc33af60920168953d2e18249b5cb87d590708d832c

See more details on using hashes here.

File details

Details for the file zibalPlatform-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: zibalPlatform-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for zibalPlatform-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a337e8b2b751f8ed2a68a9cc46ecebdddc7de949e40eb50edaa9014086a7c7a
MD5 dc1b7d85d10f16a6e8cce8409ba5792c
BLAKE2b-256 f3b65f44c4fd947ab5228ff539430a26a63d743bcffcd06de8580fb9c97fe647

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page