Requirements
How it works
- The shopper selects IRIS as the payment method.
-
Then, there are two flows possible:
- Issuer-redirect: A list of issuers is shown, and the shopper selects their issuing bank. The shopper is then redirected to the issuing bank and completes the payment. The shopper is then redirected back to your page.
- Issuer-redirect flow is applicable to Mobile and Desktop checkout scenarios
- QR-code: a QR code is shown, which the shopper scans with the issuer app. The shopper completes the payment in the app on their device. You will be notified of the payment result.
- QR code flow is intended for Desktop only; on mobile this flow is not recommended, because often the app used for scanning the QR code resides on the same device.
- Issuer-redirect: A list of issuers is shown, and the shopper selects their issuing bank. The shopper is then redirected to the issuing bank and completes the payment. The shopper is then redirected back to your page.
- You complete the order.
Build your payment form
Include fields to collect important information from your shopper in the payment form. For the Issuer-redirect flow you need to show a list of issuing banks. The list of issuing banks is included in the /paymentMethods response. The list may include the following banks:
You can download the logo for IRIS to use in your form.
We also provide logos for the issuing banks, which you can use on your payment form. For more information, refer to downloading logos.
Get IRIS as an available payment method
When you make the /paymentMethods to get available payment methods, specify the following so that IRIS is included in the response.
Example request for available payment methods
paymentMethod.type: iris, as well as the list of issuer banks.
Example response
Add additional parameters to your /payments request
When you make a payment, add the following parameters:Issuer-redirect flow
The following example shows how to make a payment request for 10 EUR, requesting the redirect flow. Example /payments request for IRIS using redirect flowaction object. This contains the information needed to redirect the shopper.
Example response
Handle the redirect
-
To complete the payment, redirect the shopper to the
action.urlreturned in the /payments response, taking the following recommendations into consideration:-
When using the HTTP GET method:
For security reasons, when showing the redirect in the app, we recommend that you use SFSafariViewController for iOS or Chrome Custom Tabs for Android, instead of WebView objects. Also refer to the security best practices for WebView. -
Redirection for mobile integrations:
For mobile integrations, we strongly recommended that you redirect the shopper to the default browser of their device. Redirecting to the default browser ensures the best compatibility, handling of multi-factor authentication, app-to-app redirection, and error handling.
-
When using the HTTP GET method:
-
After the shopper is redirected back to your website, check the payment result by making a POST /payments/details request, specifying:
details: object that contains the URL-decodedredirectResultreturned when the shopper was redirected back to your site.
resultCode: use this to present the result to your shopper.pspReference: our unique identifier for the transaction.
QR code flow
The following example shows how to make a payment request for 10 EUR, requesting the QR code flow. Example /payments request for IRIS using QR code flowaction object. This contains the information needed to generate the QR code.
Example response
Present the QR code
Follow these steps to render the QR code on your checkout page:- Use the
qrCodeDatafrom theactionobject to render the QR code on your checkout page. - After the shopper scans the QR code and completes the payment, we send a webhook informing you of the payment result.
- Present the payment result to your shopper.
Present the payment result
Use theresultCode that you received in the /payments/details response to present the payment result to your shopper, or wait for a webhook to know the outcome of the payment.
The resultCode values you can receive for IRIS payments are:
The webhooks you can receive for IRIS are:
In the QR code flow, you have to wait for webhooks to know the outcome of the payment. This also applies to the Issuer redirect flow, if the shopper failed to return to your website or app.
Test and go live
Before you accept live payments, test your integration using Adyen’s IRIS simulator. In this simulator, the payment outcome (Successful, Refused, or Cancelled) can be selected on an Adyen-hosted page. This page will load depending on the IRIS flow:- Issuer redirect flow: the page URL is in the redirect link in Adyen’s /payments response.
- QR code (Ecommerce and In-person Payments): the page URL is encoded in the QR code, which can be opened with any smartphone camera.
