Payment-method icon

Fawry Component

Add Fawry to an existing Components integration.

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

Requirements

Select the server-side flow that your integration uses:

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="fawry-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 fawry = new Redirect(checkout, { type: 'fawry' }).mount('#fawry-container');

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

const fawryComponent = checkout.create('fawry').mount('#fawry-container');

Test and go live

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

See also