
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
@paystack/paystack-sdk
Advanced tools
A Node client library for consuming the Paystack API
Your need to create a Paystack account, if you don't have one already, to get your test and live secret keys.
npm install @paystack/paystack-sdk --save
Import and initialize the library:
const Paystack = require('@paystack/paystack-sdk')
const paystack = new Paystack("sk_test_xxxxxx")
paystack.transaction.initialize({email: "test@example.com", amount: 20000})
.then(response => console.log(response))
.catch(error => console.log(error))
Import and initialize the library using ES module with async/await
:
import Paystack from '@paystack/paystack-sdk'
const paystack = new Paystack("sk_test_xxxxxx")
const initialize = async(email, amount) => {
const response = await paystack.transaction.initialize({
email,
amount
})
console.log(response)
}
const email = 'test@example.com'
const amount = 2000
initialize(email, amount)
import Paystack from '@paystack/paystack-sdk';
const paystack = new Paystack("sk_test_xxxxxx");
const initialize = async(email, amount) => {
const response = await paystack.transaction.initialize({
email,
amount
});
console.log(response);
}
const email = 'test@example.com';
const amount = 2000;
initialize(email, amount);
Kindly open an issue if you discover any bug or have problems using this library.
This repository is made available under the MIT license. Kindly read the LICENSE file for more information.
FAQs
Paystack API wrapper for Node
The npm package @paystack/paystack-sdk receives a total of 163 weekly downloads. As such, @paystack/paystack-sdk popularity was classified as not popular.
We found that @paystack/paystack-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers 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.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.