No description or website provided.
Python HTML
Latest commit 8e9ba43 Nov 10, 2016 @moabi moabi link
Failed to load latest commit information.
templates init Nov 10, 2016
.gitignore init Nov 10, 2016 init Nov 10, 2016 link Nov 10, 2016 init Nov 10, 2016



The code presented here is a demonstration of the implementation of the VADS PayZen payment system, aimed to ease its use and learning.

This demonstration uses Flask micro-framework, please refer to for installation procedure


This code is divided in two files:

  •, the main file, entry point of the VADS payment process, defining a minimal Flask application handling the three web pages involved in a PayZen VADS payment: the payment form, the IPN, and the payment return pages
  •, the core file, defining an utility class encapsulating all the PayZen logics of this example

The first use

  1. Place the files on the same directory, under the root of your server. This server must be reachable through HTTP by the PayZen servers, via its IP or a domain name
  2. In, replace the occurences of [***CHANGE-ME***] by the actual values of your PayZen account, and by the IPN and return url (typically something like http://my.server:5000/ipn and http://my.server:5000/return)
  3. Launch the Flask application with: > python By default, the Flask application will listen on port 5000 for incoming HTTP request
  4. Access http://my.server:5000/form_payment from your browser, and validate-it
  5. Follow the PayZen indications to perform the payment

The next steps

You can follow the on-file documentation in to change the properties of the payment you want to initiate, like the amount or the informations of the customer payment card.

You can also change the TEST parameter to PRODUCTION to switch to real payment mode, with all the caution this decision expects.