Skip to content

Naitik0909/Paytm_Web_Sample_Kit_Python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This sample kit is ready to be deployed and tested.

Instructions

  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. CheckSum.py – 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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%