Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
mollie-api-node
Advanced tools
Readme
Accepting iDEAL, Bancontact/Mister Cash, SOFORT Banking, Creditcard, SEPA Bank transfer, SEPA Direct debit, Bitcoin, PayPal, Belfius Direct Net, KBC/CBC, paysafecard, ING Home'Pay, Giftcards, Giropay and EPS online payments without fixed monthly costs or any punishing registration procedures. Just use the Mollie API to receive payments directly on your website or easily refund transactions to your customers.
To use the Mollie API client, the following things are required:
By far the easiest way to install the Mollie API client is to install it with npm.
$ npm install mollie-api-node --save
{
"dependencies": {
"mollie-api-node": "^1.4.0"
}
}
You may also git checkout or download all the files, and include the Mollie API client manually.
To successfully receive a payment, these steps should be implemented:
Use the Mollie API client to create a payment with the requested amount, description and optionally, a payment method. It is important to specify a unique redirect URL where the customer is supposed to return to after the payment is completed.
Immediately after the payment is completed, our platform will send an asynchronous request to the configured webhook to allow the payment details to be retrieved, so you know when exactly to start processing the customer's order.
The customer returns, and should be satisfied to see that the order was paid and is now being processed.
Requiring the library.
Mollie = require("mollie-api-node");
Initializing the Mollie API client, and setting your API key.
mollie = new Mollie.API.Client;
mollie.setApiKey("test_dHar4XY7LxsDOtmnkVtjNVWXLSlXsM");
Creating a new payment.
mollie.payments.create({
amount: 10.00,
description: "My first API payment",
redirectUrl: "https://webshop.example.org/order/12345/",
webhookUrl: "https://webshop.example.org/mollie-webhook/"
}, function (payment) {
response.writeHead(302, { Location: payment.getPaymentUrl() })
});
Retrieving a payment.
mollie.payments.get(
payment.id
, function (payment) {
if (payment.isPaid()) {
console.log("Payment received.");
}
});
Want to help us make our API client even better? We take pull requests, sure. But how would you like to contribute to a technology oriented organization? Mollie is hiring developers and system engineers. Check out our vacancies or get in touch.
BSD (Berkeley Software Distribution) License. Copyright (c) 2013-2018, Mollie B.V.
Contact: www.mollie.com — info@mollie.com — +31 20-612 88 55
FAQs
Official Mollie API client for Node (by Mollie B.V.)
The npm package mollie-api-node receives a total of 430 weekly downloads. As such, mollie-api-node popularity was classified as not popular.
We found that mollie-api-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.