Skip to main content

A minimalist python wrapper for the Paynow Payment Gateway.

Project description

Paynowzw Logo

Simple python API wrapper for Paynow Zimbabwe Online Payment Gateway system. Check official website for Paynow Paynow

Installation

Installing paynowzw is as simple as following the steps belows

pipenv install paynowzw

Dependencies

Tutorial

from paynowzw import Paynow

paynow = Paynow()

# send payment to Paynow with reference as str
paynow.send_payment('reference', {'honey':23.345})

or

# create a dictionary of products
products = {'honey':2.34,'sugar':2.33}
response = paynow.send_payment('reference', products)

#check payment status
if response['Status'] == 'Ok':
....# do stuff
else:
    # do something else. status returned an 'Error' if the payment fails

#Use this method to poll status updates about a payment
poll_status = paynow.status_update()

To Do

  • Documentation ,Documentation just felt lazy :)
  • Create example with a web framework mainly flask
  • Create a Flask extension
  • Create a test suite
  • Refactoring

Pull requests are encouraged!

License

MIT License

Copyright (c) 2018 bevenfx. However this is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

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

paynowzim-2.0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

paynowzim-2.0.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file paynowzim-2.0.1.tar.gz.

File metadata

  • Download URL: paynowzim-2.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.1+

File hashes

Hashes for paynowzim-2.0.1.tar.gz
Algorithm Hash digest
SHA256 042f892e9c86f32b27f1b622116c6532525e82be11ce2c7c2d26320026d5648c
MD5 80c0fe6f3377fed5c6956b3d15bbf200
BLAKE2b-256 3e871a2bedc88f7e97f29efc497630a68460685e40051fd4192381bb89e66a9c

See more details on using hashes here.

File details

Details for the file paynowzim-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: paynowzim-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.23.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.1+

File hashes

Hashes for paynowzim-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d170a576dfeb2c74cecc1295c7203a17792e9a80c767b4ce302470c40ff88bc6
MD5 aff192f045b23b5927bcc8e096924dad
BLAKE2b-256 08649b9b6023f127288b4291c46e1ac0a58e07a458b96c44fcc8c9da283b57c5

See more details on using hashes here.

Supported by

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