Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Litepay.ch API wrapper.
import { Litepay } from 'litepay';
// Litepay.merchantCreate
(async () => {
const invoice = await Litepay.merchantCreate({
vendor: '0X3V5B',
currency: 'USD',
secret: '290657b6-2910-391s-vv2c-cbf84fc61f88',
price: 99,
callbackUrl: 'https://google.com',
returnUrl: 'https://google.com',
invoice: 1,
});
if (invoice.status === 'success') {
console.log('redirect me to', invoice.url);
return;
}
console.log('take a look on this error message', invoice.message);
})();
// Litepay.create
(async () => {
const invoice = await Litepay.create({
method: 'btc',
receivingAddress: '1FfmbHfnpaZjKFvyi1okTjJJusN455paPH',
});
if (invoice.status === 'success') {
console.log('client gotta pay to this address', invoice.address);
return;
}
console.log('take a look on this error message', invoice.message);
})();
// Litepay.check
(async () => {
const invoice = await Litepay.check({
method: 'btc',
address: 'address from invoice.address that returns the Litepay.create method',
});
if (invoice.status === 'error') {
console.log('take a look on this error message', invoice.message);
return;
}
if (+invoice.amount < 0.15) {
console.log('invoice is not paid');
return;
}
console.log('invoice is paid successfully');
})();
See the doc: https://litepay.ch/docs
Create .env first
npm test
FAQs
Wrapper for Litepay.ch API
We found that litepay 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.