
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.
mercadopago-ideame
Advanced tools
$ npm install mercadopago
var MP = require ("mercadopago");
var mp = new MP ("CLIENT_ID", "CLIENT_SECRET");
mp.getAccessToken(function (err, accessToken){
console.log (accessToken);
});
var preference = {
"items": [
{
"title": "Test",
"quantity": 1,
"currency_id": "USD",
"unit_price": 10.5
}
]
};
mp.createPreference (preference, function (err, data){
if (err) {
console.log (err);
} else {
console.log (JSON.stringify (data, null, 4));
}
});
mp.getPreference ("PREFERENCE_ID", function (err, data){
if (err) {
console.log (err);
} else {
console.log (JSON.stringify (data, null, 4));
}
});
var preference = {
"items": [
{
"title": "Test Modified",
"quantity": 1,
"currency_id": "USD",
"unit_price": 20.4
}
]
};
mp.updatePreference ("PREFERENCE_ID", preference, function (err, data){
if (err) {
console.log (err);
} else {
console.log (JSON.stringify (data, null, 4));
}
});
Searching:
var filters = {
"id": null,
"site_id": null,
"external_reference": null
};
mp.searchPayment (filters, function (err, data){
if (err) {
console.log (err);
} else {
console.log (JSON.stringify (data, null, 4));
}
});
var MP = require ("mercadopago"),
http = require("http"),
url = require('url');
var mp = new MP ("CLIENT_ID", "CLIENT_SECRET");
function onRequest(request, response) {
var qs = url.parse (request.url, true).query;
mp.getPaymentInfo (qs["id"], function (err, data){
if (err) {
console.log (err);
response.writeHead(200, {
'Content-Type' : 'application/json; charset=utf-8'
});
response.write (err);
response.end();
} else {
console.log (JSON.stringify (data, null, 4));
response.writeHead(200, {
'Content-Type' : 'application/json; charset=utf-8'
});
response.write (JSON.stringify (data));
response.end();
}
});
}
http.createServer(onRequest).listen(8888);
mp.cancelPayment ("ID", function (err, data){
if (err) {
console.log (err);
} else {
console.log (JSON.stringify (data, null, 4));
}
});
mp.refundPayment ("ID", function (err, data){
if (err) {
console.log (err);
} else {
console.log (JSON.stringify (data, null, 4));
}
});
<a href=http://developers.mercadopago.com/documentacion/devolucion-y-cancelacion> About Cancel & Refund
FAQs
Mercadopago SDK module for Payments integration
The npm package mercadopago-ideame receives a total of 1 weekly downloads. As such, mercadopago-ideame popularity was classified as not popular.
We found that mercadopago-ideame demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
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.