🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

node-paytm-api

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-paytm-api

Paytm internal API for Node.js

1.0.1
latest
Source
npm
Version published
Weekly downloads
4
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Paytm's internal API for Node.js

Reverse engineered paytm's api wrapper written in Node.js

Instructions

Installation

Install using npm

$ npm install node-paytm-api

Usage

With Number and Password

You can simply require/import and use the Wrapper.

Example.

const Paytm = require('node-paytm-api')
const paytm = new Paytm({ number: '+919876543210', 'MyPassword' }) 
  • after creating class instance you will be recieving OTP on your provided number.
  • Then you can verify OTP using verifyOtp. The function will return Promise and you can have accessToken when resolved.
const accessToken = await paytm.verifyOtp('1234')
  • Note: AccessToken will be stored in class variable. Its only to use it later on.

  • Once you login! You can use the account methods.

With Access Token

You can use accessToken to initialize class instance too.

Example:

const paytm = new Paytm({ accessToken: '<your accessToken here>' })

Using Methods

MethodUsageArgumentsReturn value
getAccessTokenget accessToken when
successfully authenticated
NoneaccessToken(String)
getWalletHistoryretrieve wallet history of
user.
(offset: optional, limit: optional)
offset - value to skip for front
limit - Retreival results for max at a time
object -> array of transaction history
(based on offset and limit)

Code Example

  • Checkout code example here

Credits

  • HttpCanary
  • Magisk
  • Fiddler
  • and ofc me :flushed:

Keywords

paytm

FAQs

Package last updated on 18 Sep 2020

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