/django-paynow-example

An example of how to intergrate a django payment system with Paynow API (http://www.paynow.co.zw/)

Primary LanguagePythonMIT LicenseMIT

# django-paynow-exampe

This is an example of how to intergrate a django payment system with Paynow API (http://www.paynow.co.zw/)

I used the information found on the Paynow site in this document

This application was implemented to run on Heroku.com using the Getting Started with Python on Heroku article - check it out.

Running Locally

Make sure you have Python installed properly.

$ git clone https://github.com/charle-k/django-paynow-example.git
$ cd django-paynow-example

$ pip install -r requirements.txt

$ python manage.py migrate

$ python manage.py runserver 

For you to start processing payments add your Paynow Id and Key to settings.py in paysys folder. Once you are done create a new user to login with.

$ python manage.py createsuperuser

You can now run the test server and login with hte details of the user u created.

$ python manage.py runserver 

You can now start processing payments by entering amount, celllphone number and ref in the form. Click "Make Payment" to start the process.

Your app should now be running on 127.0.0.1:8000.

Deploying to Heroku

Ensure you have installe the Heroku Command Line Interface (CLI) To store information you have to provision a database. The Heroku Postgres Addon is a good option

Documentation

For more information about using Python on Heroku, see these Dev Center articles:

For more information about using Paynow you can visit the Developers page on their site