Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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 2 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.