Socket
Book a DemoInstallSign in
Socket

paytm-sdk

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paytm-sdk

Unofficial Node.JS SDK for Paytm Integration

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 27 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts