Payment-method icon

KNET Component

Add KNET to an existing Components integration.

This page explains how to add KNET to your existing Web Components integration.

Requirements

Select the server-side flow that your integration uses:

Requirement Description
Integration type Make sure that you have built a Sessions flow Web Components integration.
Setup steps Before you begin, add KNET in your Customer Area.

API reference

Select which endpoint you are using:

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.
Expand view
Copy link to code block
Copy code
Copy code
curl https://checkout-test.adyen.com/v69/sessions \
-H 'x-api-key: ADYEN_API_KEY' \
-H 'content-type: application/json' \
-d '{
"merchantAccount":"YOUR_MERCHANT_ACCOUNT",
"reference":"YOUR_ORDER_NUMBER",
"amount":{
"currency":"KWD",
"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:

Copy code
 <div id="knet-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.
Copy code
const knet = new Redirect(checkout, { type: 'knet' }).mount('#knet-container');

Use the create method of your AdyenCheckout instance, in this case checkout, to create the Component:

Copy code
const knetComponent = checkout.create('knet').mount('#knet-container');

Test and go live

To test KNET payments, use the test card details provided by Tap.

Before you can accept live KNET payments, you need to submit a request for KNET in your live Customer Area.

See also