Are you looking for test card numbers?

Would you like to contact support?

Atenção, esta página não se encontra disponível em Português
Payment-method icon

Benefit Component

Add Benefit to an existing Components integration.

On this page, you can find additional configuration for adding Benefit to your Components integration.

Before you begin

This page assumes you've already:

API reference

Select which endpoint you're integrating:

This is the default with Components v5.0.0 or later.
Parameter name Required Description
shopperName -white_check_mark- The shopper's full name.
shopperEmail -white_check_mark- The shopper's email address.
telephoneNumber -white_check_mark- The shopper's telephone number.
curl https://checkout-test.adyen.com/v68/sessions \
-H "x-API-key: YOUR_X-API-KEY" \
-H "content-type: application/json" \
-d '{
  "merchantAccount":"YOUR_MERCHANT_ACCOUNT",
  "reference":"YOUR_ORDER_NUMBER",
  "amount":{
    "currency":"BHD",
    "value":1000
  },
  "shopperName":{
    "firstName": "Happy",
    "lastName": "Testing",
    "gender": "UNKNOWN"
    }
  "shopperEmail":"shopper@email.com",
  "telephoneNumber":"000000000000",
  "returnUrl":"https://your-company.com/checkout?shopperOrder=12xy.."
}'

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

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.

See also