Skip to content
A Python client for the ZOOZ Payment gateway
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
example.py
zooz.py

README.md

ZOOZ Python Client

A Python library for making ZooZ API Calls

Official Documentation


The official docs for ZOOZ can be found on their developer portal - http://www.zooz.com/developers. This is an unofficial client library written out of necessity.


Usages

Import the client:

from zooz import ZoozClient

Create a new instance of the Client

zooz = ZoozClient(unique_id='<unique_id>',
                  app_key='<app_key>',
                  sandbox=True)

You can use arguments unpacking with the make_request() method:

transaction = {'cmd': 'openTrx',
               'amount': '0.99',
               'currencyCode': 'USD'}

print zooz.make_request(**transaction)

Which is equivalent to:

print zooz.make_request(cmd='openTrx',amount=0.99, currencyCode='USD')

Or you can also directly call the ZooZ commands:

print zooz.openTrx(amount=0.99, currencyCode='USD')

You can’t perform that action at this time.