No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
pythonKit 3.X utility updated for python3 Sep 14, 2018
pythonKit2.X Upgraded to PGP... Mar 6, 2018
.gitattributes 🎊 Added .gitattributes Jan 15, 2016 Python Kit Update May 23, 2017


This sample kit is ready to be deployed and tested.


  1. Copy the pythonKit folder(according to your python version) into the root folder of your server (like /var/www/html)
  2. Mandatory Step: For each test transaction, please change the value of the parameter "ORDER_ID" in the test.cgi file.

Usage Description

The pythonKit folder has the following files:

  1. – This file has the logic for checksum generation and verification.
  2. test.cgi – This file will initiate the sample test transaction through the Paytm gateway. Paytm parameters need to be added in this file.
  3. response.cgi – This file has the logic for processing PG response after the transaction processing.

For Offline(Wallet Api) Checksum Utility below are the methods:

  1. generate_checksum_by_str : For generating the checksum
  2. verify_checksum_by_str : For verifing the checksum

To generate refund checksum in Python :

  1. Create an array with key value pair of following paytm parameters (MID, ORDERID, TXNTYPE, REFUNDAMOUNT, TXNID, REFID)
  2. To generate checksum, call the following method. This function returns the checksum as a string. generate_refund_checksum(param_dict, merchant_key, salt=None)