Payment-method icon

Fawry Redirect Component

Add Fawry to your existing iOS Components integration.

This page explains how to add Fawry to your existing iOS 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 iOS Components integration.
Setup steps Before you begin, add Fawry 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/checkout/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":"EGP",
"value":1000
},
"shopperName":{
"firstName": "Happy",
"lastName": "Testing",
"gender": "UNKNOWN"
},
"shopperEmail":"shopper@email.com",
"telephoneNumber":"000000000000",
"returnUrl":"my-app://adyen"
}'

Component configuration

If your integration uses iOS Components v5.0.0 or later, configure and create an instance of the Fawry Component:

Copy code
//Create a payment method object for Fawry.
let paymentMethod = paymentMethods.paymentMethod(ofType: fawryComponentPaymentMethod.self)
//Create a configuration object for the Fawry Component.
var fawryComponentConfiguration = fawryComponent.Configuration()
//Set additional parameters on the configuration object.
fawryComponentConfiguration.localizationParameters = //Optional custom localization parameters.

There is no required Fawry-specific integration for Components.

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