0.0.2 • Published 7 years ago

paytm-sdk v0.0.2

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

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

ReleaseNotes
0.0.1Priliminary release

Licence

MIT

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago