A technical guide to implementing PSD2 requirements in payment systems, covering SCA, open banking, and consent management.
The Revised Payment Services Directive (PSD2) reshaped how payments work across the European Economic Area. If you build or maintain payment systems that serve European customers, PSD2 compliance is not optional. It touches authentication flows, data access, and the relationship between banks, merchants, and third-party providers.
This guide covers what matters from an implementation perspective, not the legal theory.
SCA requires two-factor authentication for electronic payments. The two factors must come from different categories:
Your payment flow must support SCA for all customer-initiated transactions unless an exemption applies. In practice, this means integrating 3D Secure 2 for card payments and supporting bank-side authentication for direct debits and transfers.
SCA exemptions you can request:
Your PSP handles most exemption signaling, but your system needs to pass the right flags and handle soft declines when an exemption is rejected.
PSD2 created two new regulated roles:
Banks must provide APIs for these services. If you are building an AISP or PISP, you need to:
PSD2 tightened rules around surcharging, refund rights, and transaction transparency. For developers, the key impact is:
The most common approach is delegating SCA to your PSP through 3D Secure 2. Here is a typical flow:
Critical detail: Always handle the pending state. SCA introduces asynchronous authentication, meaning payments are not instant. Your system must support:
If you access bank accounts through PSD2 APIs, consent management is central:
// Consent lifecycle
1. Request consent -> Customer authorizes at their bank
2. Store consent reference + expiry
3. Use consent to fetch data (90-day access window typical)
4. Re-request consent before expiry
5. Handle revocation callbacks from the bank
Store consent tokens securely and track their expiration. Most PSD2 consents last 90 days, after which the customer must re-authenticate. Design your UX to handle re-consent smoothly rather than surprising users with a broken flow.
When a payment is declined because SCA was not performed (a soft decline), your system needs a retry path:
Do not simply fail the transaction. Soft declines are expected and recoverable.
Testing SCA flows is tricky because they involve bank-side authentication:
PSD2 compliance is not a one-time checkbox. As banks update their implementations and the regulatory landscape evolves toward PSD3, your payment system needs to be adaptable. Build for flexibility, test thoroughly, and keep your PSP integration layer clean.
Whether you're modernizing your infrastructure, navigating compliance, or building new software - we can help.
Book a 30-min Call