Skip to main content
Adyen is no longer developing the Classic API integration This page is for the Classic API (/authorise) integration, which we no longer accept new integrations with. We strongly recommend migrating to the newer Native 3D Secure 2 for iOS integration. To use this newer integration, you must also migrate to the Checkout API.

PSD2 compliance

If you are implementing 3D Secure to comply with PSD2 SCA, learn more from our comprehensive guide. The Adyen 3DS2 iOS SDK gets the device fingerprint and presents the challenge to your shopper. From your server, you need to send a payment request, the encrypted device fingerprint, and the challenge result to Adyen. In a full 3D Secure 2 implementation, a payment can go through either a frictionless or a challenge authentication flow before it can be authorised. If you only want to perform a 3D Secure 2 authentication and then authorise the payment later, refer to the Authentication-only documentation.

How it works

Here’s how a 3D Secure 2 challenge authentication flow works:
  1. Submit a payment request with the required 3D Secure 2 objects to start the authentication process. Build your implementation depending on the resultCode returned in the response. If the transaction is exempted from 3D Secure, you might get an Authorised result code.
  2. If you receive an IdentifyShopper resultCode, get the 3D Secure 2 device fingerprint and send the encrypted device fingerprint information to Adyen. After you send the device fingerprint, it is possible that you receive an AuthorisedresultCode in the response. This means that the 3D Secure 2 authentication was frictionless, and the payment was authorised.
  3. If you receive ChallengeShopperresultCode, this means that the issuer requires further shopper interaction and you need to present a challenge to the shopper.
The payment might also be routed to 3D Secure 1, based on issuer performance. This is indicated by a RedirectShopper resultCode. If you do not want to automatically fall back to 3D Secure 1, contact our Support Team. To test your integration, see Testing 3D Secure 2.

Before you begin

Adyen 3DS2 iOS
Subscribe to our GitHub repository to get the latest updates and versions. Before you begin to integrate, make sure you have followed the Get started with Adyen guide to:
  • Get an overview of the steps needed to accept live payments.
  • Create your test account.
After you have created your test account:
  1. Get your API Key. Save a copy, because you’ll need it for API calls you make to the Adyen payments platform.
  2. Install one of our Libraries to connect with the Adyen APIs.
  3. Install the Adyen 3DS2 iOS SDK latest version. You must use version 2.3.0 or later to trigger the 3D Secure 2 native flow. You can install the SDK through CocoaPods, Carthage, or by manually installing the SDK as a dynamic or static framework.
  1. Add pod 'Adyen3DS2' to your Podfile.
  2. Run pod install.