Payment Gateway Integration: PCI DSS Without the Pain

Most payment integrations make one of two mistakes: dragging the entire platform into PCI DSS scope, or bolting a checkout onto the side and calling it done. Here's the architecture in between.

Scope Is the First Architecture Decision

PCI DSS compliance cost is a function of one thing: how much of your system touches cardholder data. The single most valuable payments decision you'll make is ensuring the answer is "none of it".

Modern gateways make this achievable. Hosted fields and payment elements (Stripe Elements, Adyen Components, Checkout.com Frames) mean card numbers travel from the customer's browser directly to the gateway — your servers only ever see tokens. Done properly, you qualify for SAQ A, the lightest self-assessment tier, instead of the audit-heavy tiers that come with touching PANs. The difference is measured in weeks of engineering and tens of thousands of pounds, every year, forever.

Pick Rails by Use Case, Not Brand

The right provider mix depends on what you're collecting and from whom:

Most platforms we build end up multi-rail: cards for acquisition, Direct Debit for recurring revenue, open banking for large invoices. Architect for that from day one with a provider-agnostic payments service, so adding a rail is configuration, not a rebuild.

Webhooks: The Part Everyone Gets Wrong

Payment state lives at the provider and arrives asynchronously. Treat webhooks as the source of truth and your integration becomes robust; treat the redirect back to your site as truth and you will ship phantom orders.

A payments integration isn't finished when the happy path works. It's finished when a webhook arriving twice, out of order, three days late, changes nothing.

The Reconciliation Layer Finance Will Love You For

The gap between "payments work" and "finance trusts the system" is reconciliation. Build a small internal ledger: every order, every payment intent, every payout, every fee, every refund, with provider IDs joined to your records. From that one table you get automated payout matching, dispute tracking, revenue recognition exports, and month-end that takes an hour instead of a week. This is consistently the highest-ROI component of the entire build — and it pairs naturally with automated invoice processing on the payables side.

Delivery Shape

A production payments capability — checkout, tokenised repeat billing, webhook pipeline, refunds, reconciliation ledger and finance reporting — is typically a 4-8 week fixed-price build. Week 2 includes a threat model and PCI scope review in writing, so your compliance position is a design artefact, not an afterthought.

Adding payments to a platform?

Book 15 minutes — we've integrated card, Direct Debit and open banking rails into regulated platforms, and we'll scope yours honestly.

Book a 15-Minute Call →