
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.
@adyen/adyen-web
Advanced tools
@adyen/adyen-web is a comprehensive JavaScript library for integrating Adyen's payment solutions into web applications. It provides a wide range of functionalities to handle various payment methods, including credit cards, wallets, and local payment methods. The package is designed to simplify the integration process, ensuring secure and seamless payment experiences for users.
Drop-in Integration
The Drop-in integration provides a ready-made UI for accepting payments. It supports a wide range of payment methods and handles the entire payment flow, including payment submission and additional details collection.
const AdyenCheckout = require('@adyen/adyen-web');
const checkout = new AdyenCheckout({
clientKey: 'test_CLIENT_KEY',
environment: 'test',
onSubmit: (state, dropin) => {
// Handle the payment submission
},
onAdditionalDetails: (state, dropin) => {
// Handle additional details
}
});
const dropin = checkout.create('dropin').mount('#dropin-container');
Component Integration
The Component integration allows you to integrate individual payment method components, such as credit cards, into your custom UI. This provides more flexibility and control over the payment experience.
const AdyenCheckout = require('@adyen/adyen-web');
const checkout = new AdyenCheckout({
clientKey: 'test_CLIENT_KEY',
environment: 'test'
});
const card = checkout.create('card').mount('#card-container');
Handling Payment Methods
This feature allows you to retrieve and handle the available payment methods for a specific merchant account. It provides a list of payment methods that can be displayed to the user.
const AdyenCheckout = require('@adyen/adyen-web');
const checkout = new AdyenCheckout({
clientKey: 'test_CLIENT_KEY',
environment: 'test'
});
checkout.paymentMethodsResponse.then(paymentMethodsResponse => {
// Handle the available payment methods
console.log(paymentMethodsResponse);
});
Stripe is a popular payment processing library that provides a wide range of payment solutions for web and mobile applications. It offers similar functionalities to @adyen/adyen-web, including support for various payment methods, secure payment processing, and customizable UI components. Stripe is known for its ease of use and extensive documentation.
Braintree is a full-stack payment platform that offers web and mobile payment solutions. The braintree-web package provides functionalities similar to @adyen/adyen-web, including support for multiple payment methods, secure transactions, and customizable payment forms. Braintree is a PayPal service and is known for its robust security features and developer-friendly APIs.
PayPal Checkout Components is a library for integrating PayPal's payment solutions into web applications. It offers functionalities similar to @adyen/adyen-web, such as support for various payment methods, secure payment processing, and customizable UI components. PayPal is widely recognized and trusted by users, making it a popular choice for online payments.
Adyen Web provides you with the building blocks to create a checkout experience for your shoppers, allowing them to pay using the payment method of their choice.
You can integrate with Adyen Web in two ways:
We only provide full support when you use one of these methods of installation.
npm install @adyen/adyen-web --save
import AdyenCheckout from '@adyen/adyen-web';
import '@adyen/adyen-web/dist/adyen.css';
You can also import Adyen Web using a <script>
tag, as shown in the Web Components integration guide.
To run the development environment:
.env
file on your project's root folder following the example in env.default
and fill in the environment variables.yarn install
yarn start
Starting v5.16.0 the Drop-in and Components integrations contain analytics and tracking features that are turned on by default. Find out more about what we track and how you can control it.
We merge every pull request into the master
branch. We aim to keep master
in good shape, which allows us to release a new version whenever we need to.
Have a look at our contributing guidelines to find out how to raise a pull request.
If you have a feature request, or spotted a bug or a technical problem, create an issue here.
For other questions, contact our support team.
This repository is available under the MIT license.
FAQs
[](https://www.npmjs.com/package/@adyen/adyen-web)
The npm package @adyen/adyen-web receives a total of 398,093 weekly downloads. As such, @adyen/adyen-web popularity was classified as popular.
We found that @adyen/adyen-web demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.