Skip to content
This repository has been archived by the owner on Sep 20, 2020. It is now read-only.
/ node-paytm-sdk Public archive

Unofficial Express Middleware for Paytm Integration

License

Notifications You must be signed in to change notification settings

saswatds/node-paytm-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS Paytm Checksum SDK

npm version Dependency Status

Unofficial Node.JS SDK for Paytm Checksum Generation and Verification

Installation

$ npm install paytm-sdk --save

Usage

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)

Options

const paytm = new Paytm('<merchantkey>', {
  generateRoute: '/checksum/generate', 
  verifyRoute: '/checksum/verify',
  handleError: false
})
generateRoute

This is route where you can send a POST request to generate checksum. The default value is set to /checksum/generate

verifyRoute

This is route where you can send a POST request to verify checksum. The default value is set to /checksum/verify

handleError

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

Release Notes
0.0.1 Priliminary release

Licence

MIT

About

Unofficial Express Middleware for Paytm Integration

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published