
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
onlinepayments-sdk-nodejs
Advanced tools
SDK to communicate with the Online Payments platform using the Online Payments Server API
The Node.js SDK helps you to communicate with the payment platform server API. Its primary features are:
See the Worldline Direct Payments Developer Hub for more information on how to use the API.
This repository consists out of three main components:
/src
/schemas
/__tests__
Node.js 18 or higher is required.
From the folder where your package.json
is located, run the following command to install the SDK:
npm i onlinepayments-sdk-nodejs
From the root of the project install all dependencies, then compile the code:
npm install
npm run build
There are two types of tests:
Unit tests. These will work out-of-the-box.
Run these tests as follows:
npm run test:unit
Integration tests. Before you can run these, you first need to copy file __tests__/config.json.dist
to __tests__/config.json
and replace all values as needed. If needed, a proxy
property can be added with nested properties host
, scheme
(defaults to http
), port
(defaults to 3128) and credentials
(optional, in the format <username>:<password>
).
Run these tests as follows:
npm run test:integration
You can also run both types of tests together as follows:
npm run test
FAQs
SDK to communicate with the Online Payments platform using the Online Payments Server API
The npm package onlinepayments-sdk-nodejs receives a total of 1,308 weekly downloads. As such, onlinepayments-sdk-nodejs popularity was classified as popular.
We found that onlinepayments-sdk-nodejs demonstrated a healthy version release cadence and project activity because the last version was released less than 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.