This page explains how to add Benefit to your existing Web Components integration.
Requirements
Select which endpoint you are using:
API reference
Select which endpoint you are using:
Component configuration
Step 1: Create a DOM element
Create a DOM element on your checkout page, placing it where you want the payment method form to be rendered:
<div id="benefit-container"></div>
Step 2: Create an instance of the Component
v6.0.0 or later
Create an instance of the Component, passing:
- Your instance of
AdyenCheckout
.
const benefit = new Redirect(checkout, { type: 'benefit' }).mount('#benefit-container');
v5.x.x or earlier
Use the create
method of your AdyenCheckout
instance, in this case checkout
, to create the Component:
const benefitComponent = checkout.create('benefit').mount('#benefit-container');
Test and go live
To test Benefit payments, use the test card details provided by Tap.
Before you can accept live Benefit payments, you need to submit a request for Benefit in your live Customer Area.