
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
paytm-node-typescript
Advanced tools
[](https://www.npmjs.com/package/paytm-node-typescript)
Unofficial nodejs library for Paytm API with typescript support.
Read up here for getting started and understanding the payment flow with Paytm: https://developer.paytm.com/docs
npm i paytm-node-typescript
Documentation of Paytm's API and their usage is available at https://developer.paytm.com/docs
Instantiate the paytm instance with mid, key, isProduction & callbackUrl. You can obtain the keys from the dashboard app (https://dashboard.paytm.com/next/apikeys)
const instance = new Paytm({
mid: 'YOUR_MID',
key: 'YOUR_KEY_SECRET',
isProduction: true | false,
callbackUrl: 'YOUR_CALLBACK_URL'
});
The resources can be accessed via the instance. All the methods invocations follow the namespaced signature
// API signature
// {paytmInstance}.{resourceName}.{methodName}(resourceId [, params])
// example
instance.payments.initTransaction(bodyObj);
Every resource method returns a promise.
instance.payments
.initTransaction(bodyObj)
.then(response => {
// handle success
})
.catch(error => {
// handle error
});
This library comes with the standard way of handling all the errors originated by Paytm. The Error object comes with the following keys and value
npm install
npm test
master branch. Make sure you have the latest changes in the local masterCHANGELOG.md & bump the version in package.jsonnpm publish commandMIT Licensed. See LICENSE.txt for more details
FAQs
[](https://www.npmjs.com/package/paytm-node-typescript)
We found that paytm-node-typescript demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.