How adyen/adyen-ios works
Adyen iOS is a Swift SDK for building shopper checkout flows from individual payment components. The documented session workflow starts with merchant configuration and a backend-created session, sets up Checkout, creates a component for a payment method, and reports completion or failure through callbacks; Adyen manages submission and returned actions in this flow. The graph also preserves card entry, shared UI/theming, and action handling. Several relationships are documented in the README; source excerpts are limited, so unsampled integrations are not inferred.
Main entry points: SessionCheckout.swift Checkout setup · CheckoutComponentBuilder.swift Component creation · PaymentComponent.swift Payment component · CardViewController.swift Card entry form
Components 20
Checkout flow
- Checkout setup
AdyenCheckout/Flows/SessionCheckout.swift - Checkout configuration
AdyenCheckout/CheckoutConfiguration/CheckoutConfiguration.swift - Session response
- Component creation
AdyenCheckout/Component/CheckoutComponentBuilder.swift - Flow callbacks
AdyenCheckout/Callbacks/CheckoutCallbackHandlers.swift - Checkout result
Adyen/ResponseModels/SessionCheckoutResult.swift
Payment components
- Payment methods
Adyen/Core/Payment Methods/Abstract/PaymentMethods.swift - Payment component
Adyen/Core/Core Protocols/PaymentComponent.swift - Card component
AdyenCard/Components/Card/CardComponent.swift - Card entry form
AdyenCard/Components/Card/CardViewController.swift - Other components
AdyenComponents
Payment actions
- Action handling
AdyenActions/CheckoutActionComponent.swift - Action components
AdyenActions/Components
Shared platform
- Core context
Adyen/Core/AdyenContext/AdyenContext.swift - Session API client
AdyenSession/API/SessionAPIClient.swift - Shared UI
AdyenUI/UI/Form/FormViewController.swift - Checkout theme
AdyenUI/CheckoutTheme.swift
Other components
- Merchant app
- Shopper
- Merchant backend
Connections 23
- Merchant app → Checkout configuration: configures
- Merchant backend → Session response: creates session
- Merchant app → Checkout setup: sets up
- Checkout configuration → Checkout setup: configures
- Session response → Checkout setup: initializes
- Checkout setup → Component creation: creates
- Merchant app → Component creation: selects method
- Payment methods → Payment component: provides choices
- Component creation → Payment component: returns component
- Payment component → Card component: specializes as
- Shopper → Card entry form: enters details
- Card component → Card entry form: renders
AdyenCard/Components/Card/CardViewController.swift - Card entry form → Shared UI: uses form
AdyenCard/Components/Card/CardViewController.swift - Component creation → Other components: creates payment UI
- Payment component → Action handling: handles returned action
- Action handling → Action components: dispatches action
- Checkout setup → Core context: uses shared context
- Session response → Session API client: supports session flow
- Merchant app → Checkout theme: customizes
- Shared UI → Checkout theme: applies styling
AdyenUI/UI/Form/FormViewController.swift - Checkout setup → Flow callbacks: registers callbacks
- Flow callbacks → Checkout result: reports completion
- Checkout setup → Merchant backend: submits payment