Unofficial Node.JS SDK for Paytm Checksum Generation and Verification
$ npm install paytm-sdk --save
const Paytm = require('paytm-sdk')
const paytm = new Paytm('<merchantkey>', options)
const express = require('express')
const bodyParser = require('body-parser')
const app = express()
app.use(bodyParser.json())
app.use(bodyParser.urlencoded({extended: true}))
app.use('/', paytm.middleware())
app.listen(8000)
const paytm = new Paytm('<merchantkey>', {
generateRoute: '/checksum/generate',
verifyRoute: '/checksum/verify',
handleError: false
})
This is route where you can send a POST request to generate checksum. The default value is set to /checksum/generate
This is route where you can send a POST request to verify checksum. The default value is set to /checksum/verify
Set this to true if you do not want to handle the error condition, instead want the library to send 500 for checksum generation failure and 400 for incorrect checksum
Release | Notes |
---|---|
0.0.1 | Priliminary release |
MIT