Skip to main content
Postman collection Implementation examples
Java Spring
.NET
Node.js
This page explains how to add gift cards to your existing Web Components integration.

Requirements

API reference

You do not need to send additional fields for gift cards. To see optional fields that you can send for all payment methods, choose the endpoint you integrated:

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:

Step 2: Create an instance of the Component

Select your integration:
Supported in Components v5.18.0 and later.

Required configuration

Add configuration to let the shopper pay part of the amount with a gift card and the rest with another payment method.Add the following event to your gift cards configuration object:The following example shows how to configure the gift card Component to allow the shopper to pay the remaining amount using iDEAL or a card.Gift card configuration
Example orderStatus object

v6.0.0 or later

Create an instance of the Component, passing:
  • Your instance of AdyenCheckout.
  • Optionally, the payment method-specific configuration.
**

v5.x.x or earlier

Use the create method of your AdyenCheckout instance, in this case checkout, to create the Component. Pass the configuration object if you created one:

Step 3: Mount the Component

Mount the Component only after checking that gift cards is available to the shopper: