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.
simplify-commerce
Advanced tools
Node.js Module for Simplify Commerce
A Node.js module for the Simplify Commerce payments platform. If you have not already got an account sign up at https://www.simplify.com/commerce.
If you haven't done so, you first need to install the Simplify module. You can either download it at https://www.simplify.com/commerce/docs/sdk/nodejs and install it from the binary. More easily, you can install it using node's package manager.
You can do so with the following command:
npm install simplify-commerce
To run a payment though Simplify Commerce use the following script substituting your public and private API keys:
var Simplify = require("simplify-commerce"),
client = Simplify.getClient({
publicKey: 'YOUR_PUBLIC_API_KEY',
privateKey: 'YOUR_PRIVATE_API_KEY'
});
client.payment.create({
amount: "123123",
description: "Node.js Sample Payment",
card: {
expMonth: "11",
expYear: "25",
cvc: "123",
number: "5555555555554444"
},
currency: "USD"
}, function(error, data) {
if (error) {
console.error(JSON.stringify(error.data));
return;
}
console.log("Payment Status: " + data.paymentStatus);
});
For more examples see https://www.simplify.com/commerce/docs/sdk/nodejs
Please see LICENSE.txt for details.
For more detailed information on the API with examples visit the online documentation at https://www.simplify.com/commerce/docs/api/index
Please see https://www.simplify.com/commerce/support for information.
Copyright (c) 2013 - 2023 MasterCard International Incorporated All rights reserved.
FAQs
Simplify Commerce Node.js SDK
We found that simplify-commerce 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.