Build your web payments form with our JavaScript Components.
Components is our pre-built UI solution for accepting payments on your website. Each component renders a payment method which you can place anywhere on your website. This integration requires you to make one API request to /sessions endpoint.
Adding new payment methods usually doesn’t require more development work. Components supports cards, wallets, and most local payment methods.
From an implementation perspective, a Components integration contains:
If you need to handle additional use cases, you need to implement additional endpoints and client-side configuration.
If you need to handle additional use cases, you need to implement additional endpoints and client-side configuration.
The payment flow is the same for all payments:
The shopper goes to the checkout page.
Your server uses the shopper’s country and currency information from your client to create a payment session.
Your client creates an instance of the Component using the session data from the server.
The Component collects the shopper’s payment details, handles additional actions, and presents the payment result to the shopper.
Your webhook server receives the event containing the payment outcome.
A payment session is a resource with information about a payment flow initiated by the shopper. This resource has all the information Components needs to handle all the stages of a payment flow. You can configure this resource with information like available payment methods, payment amount, or line items.
If you don’t get an HTTP 201 response, use the errorCode field and the list of API error codes to troubleshoot.
Use a Component to show each available payment method, and to collect payment details from your shoppers.
Install the Adyen Web Node package:
npm install @adyen/adyen-web --save
EPG Addon Payments 2.0 funciona gracias a WordPress
