On this page
In brief
- Compare building a gateway, using a hosted PSP and a hybrid integration against the merchant’s needs and operating capacity, hypothetical three-year costs and calculate the volume at which the custom option breaks even.
- Trace a £120 card payment through authentication, authorisation, capture, clearing, settlement, refunds and reconciliation.
- Define gateway architecture, partner integrations, merchant onboarding and responsibilities for security and incidents.
- Assess FCA permissions, SCA, UK GDPR, VAT and applicable PCI DSS controls and validation.
- Test timeouts, duplicate events and settlement exceptions before launch; monitor and maintain controls afterwards.
UK engineering and ecommerce teams must also decide who handles card data, provides acquiring, settles funds in GBP and owns security and support.
This guide follows an illustrative £120 online card payment, from checkout to settlement. Actual flows depend on the integration and contracts; bank payments and digital wallets can follow different routes. Use the example to assess architecture, partners, compliance, testing and whether to build, buy or use a hybrid.
What Does a Payment Gateway Do?
A gateway connects checkout to payment services. The merchant sells; the acquirer enables acceptance; the processor provides infrastructure; the scheme routes messages; and the issuer decides authorisation. One firm may perform several roles, but gateway software alone does not provide a merchant account or guarantee settlement.
Model | Control and dependencies | Scope and operations |
|---|---|---|
Build | Custom checkout and routing; contracted acquirers still needed. | Scope follows data flows; requires engineering, security and support staff. |
Hosted PSP | Faster launch with provider-controlled features. | Hosted capture may reduce scope; merchant controls and validation remain. |
Hybrid | Own selected workflows while outsourcing capture or processing. | Shared integration, evidence and support responsibilities. |
For the £120 merchant, hosted checkout may suit a standard launch; custom routing may suit a demonstrated need to choose among integrated acquirers. Routing is limited by contracts, certification and partner capabilities. Before deciding, request a demonstration, responsibility matrix, PCI scope assessment and full fee schedule. A bank-payment initiation flow is not a card transaction; digital-wallet implementations also differ.
Follow a £120 Card Payment Through Its States
At checkout, card details enter a hosted or other approved collection flow. The gateway sends the payment through the processor, acquirer and scheme to the issuer. Where required, 3-D Secure authentication may be frictionless or challenged. Tokenisation is optional.
State or operation | Meaning |
|---|---|
Created / pending | Payment exists; final outcome is unknown. |
Authentication required | The customer must complete the next step. |
Authorised / declined | The issuer has approved or rejected the request. |
Capture requested / confirmed | A capture has been submitted / confirmed by the provider; neither proves settlement. |
Clearing / settlement | Transaction information and funds move through the relevant parties; the merchant is paid under its agreement. |
Expired, reversed or cancelled | The authorisation can no longer be used, or is reversed or cancelled, according to partner rules. |
Refund / dispute | Related operations with their own statuses; a later chargeback can follow an approved payment. |
Where supported, a merchant might capture £80 of the £120 authorisation and later refund £20; remaining capture rights and time limits depend on the provider and scheme. An expired authorisation needs partner-confirmed handling, potentially a new authorisation. A webhook reports an event, not necessarily the latest state; consult the provider when events are delayed or out of order.
Finance compares the gateway ID and capture with processor or acquirer clearing and settlement reports, then with the merchant’s GBP payout and documented fees. The gateway record proves its own request; the partner’s report is authoritative for its processing and settlement. A named reconciliation owner investigates differences with the partner before treating them as resolved.
Illustrative reconciliation: a £120 capture appears in the acquirer’s report, followed by a hypothetical £1.80 merchant service charge and a £118.20 payout (£120 − £1.80). Real fees and payout timing follow the contract; a payout may cover many transactions and adjustments. Match the transaction ID, capture, statement and bank credit before closing the exception.
Design the Gateway Architecture and Integrations
Component and illustrative owner | Function and boundary |
|---|---|
Merchant checkout | Collects the order and invokes hosted fields or redirect. |
Gateway API and orchestration | Authenticates merchants, selects permitted routes and records requests. |
Provider adapter and 3-D Secure | Connects the contracted provider and handles authentication responses. |
Gateway event handler and records | Verifies webhooks, stores state history and supports reporting. |
Acquirer/processor reports | Provide partner-side processing and settlement evidence for reconciliation. |
Direct card handling expands scope; hosted fields or redirect can reduce exposure while retaining obligations. A token is not automatically out of scope: assess whether it can be reversed or used for payments. Exclude PAN and security codes from logs, URLs, analytics and support tickets; restrict and rotate credentials.
Use provider-documented idempotency keys for payment and capture requests. They reduce duplicates within their documented scope and expiry, but cannot promise exactly-once processing across systems. Verify webhook signatures, acknowledge promptly and deduplicate event IDs. Apply bounded retries with backoff and process events asynchronously. If a request times out, query its original identifier; do not create a new charge while its outcome remains unresolved. Escalate persistent uncertainty to a named support owner. Pin API versions, test partner changes in sandbox and regression tests, and plan production migration.
Example: handling a payment timeout
For an illustrative £120 payment, the system sends the provider an order reference, the amount in pence, GBP as the currency and, where the integration uses one, a payment token. Some hosted checkouts instead begin by creating a payment session. A unique idempotency key can help prevent duplicate operations when a request is retried, subject to the provider’s rules.
If no response arrives in time, keep the payment unconfirmed and check the original operation using the provider’s documented method. Where supported, retry the same request with the same idempotency key and parameters. Do not create a new payment until the original outcome is resolved: the first request may have succeeded even if its response was lost.
Verify webhook authenticity and handle duplicate or out-of-order events. If the status is unclear, check the provider’s records. Reconcile capture, settlement and the merchant payout against the relevant reports.
Onboard Merchants and Assign Responsibilities
For the £120 merchant, collect the business model, legal-entity and beneficial-owner details required by the responsible partner; review the website and risk; complete underwriting; sign terms; verify the settlement account; issue test credentials; and enable production only after approval. Missing or suspicious information goes to the designated reviewer, who can request evidence, reject or suspend the application.
Distinguish customer due diligence and sanctions checks from underwriting and fraud scoring. The regulated partner identifies its duties; a gateway collecting information under contract is not automatically AML-regulated. Protect data transfers, access and records.
Task | Illustrative owner | Evidence |
|---|---|---|
Checks and approval | Responsible acquirer/regulated partner; gateway may collect data | Decision and escalation record |
Checkout and API access | Merchant and gateway, by component | Configuration and access review |
Processing and settlement | Acquirer/processor, with merchant reconciliation | Partner reports and payout records |
Refunds and disputes | Merchant initiates or provides evidence; partner processes according to contract | Refund and dispute case records |
PCI and incidents | Each party for its scope; shared controls have named owners | AOC, matrix and contact list |
Agree who communicates with customers and escalates failed refunds. Contracts allocate tasks but do not automatically transfer legal duties.
Address UK Regulation, Privacy and VAT
Assess actual activities, contracts and funds flows against the FCA payment services perimeter guidance. A technical provider supporting payments without possessing the funds may qualify for an exclusion if its conditions are met. Payment initiation and account information services cannot rely on that exclusion. Acquiring or other regulated activity needs its own assessment; outsourced technical work does not remove the payment provider’s responsibilities. Verify the contracting firm’s status, permissions and restrictions on the FCA Financial Services Register.
Assess strong customer authentication under the Payment Services Regulations 2017 and relevant FCA technical standards. For £120, the merchant and gateway initiate the partner’s supported 3-D Secure flow; the issuer or its provider normally performs authentication. Return the appropriate pending, failed or next-step result after frictionless authentication, challenge, cancellation or uncertainty. Exemptions and merchant-initiated treatment depend on eligibility and provider support; neither 3-D Secure nor an exemption guarantees a liability shift. See FCA guidance.
Under UK GDPR and the Data Protection Act 2018, determine controller and processor roles, lawful basis, contracts, data minimisation, security and international transfers. A controller must report a notifiable personal data breach to the ICO without undue delay and, where feasible, within 72 hours of awareness; notification is unnecessary if risk to individuals’ rights and freedoms is unlikely. Affected individuals must also be informed without undue delay when the applicable high-risk test is met. Assess separate contractual deadlines. See the ICO breach guidance.
Use GBP settlement, merchant service charge, interchange fee, scheme fee and chargeback consistently. For VAT, supplying technical processing software does not automatically qualify for the treatment of a financial transaction; assess each actual supply and contract against HMRC guidance.
Set the PCI DSS Scope and Security Controls
Map the primary account number (PAN) and other cardholder data wherever stored, processed or transmitted. Include connected systems and systems that can affect the cardholder data environment (CDE). Sensitive authentication data (SAD) includes card verification codes, full track data and PIN/PIN blocks. SAD generally must not be stored after authorisation, even encrypted; do not assume limited issuer exceptions apply to merchants.
Use the current PCI DSS documentation. PCI DSS v4.0.1’s future-dated requirements took effect on 31 March 2025. Apply controls appropriate to scope: network segmentation, secure development, encryption and key management, MFA, least privilege, patching, logging, scans, penetration testing and incident response. Payment-page script authorisation and integrity under requirement 6.4.3 and tamper detection under 11.6.1 apply where relevant.
Hosted fields or redirects do not automatically establish SAQ A eligibility. For an embedded form, PCI SSC FAQ 1588 describes confirming protection against script attacks either through suitable techniques deployed by the merchant or a third party, or through qualifying confirmation from the compliant form provider when implemented as instructed. This specific criterion does not apply to redirect-only implementations. Other eligibility conditions remain. For merchants using SAQ A, FAQ 1604 addresses ASV scanning for merchant pages using redirect or iframe.
These are merchant validation criteria, not the gateway service provider’s own SAQ. Depending on its programme and eligibility, a service provider may use SAQ D or a Report on Compliance (ROC); confirm with the compliance-accepting entity. Request an in-scope provider Attestation of Compliance (AOC), assessment dates and responsibility matrix. Retain a data-flow diagram, asset inventory, access reviews, scan results and remediation, incident exercises and supplier evidence. An AOC is point-in-time evidence, not a guarantee of continuing security.
Build, Test and Launch in Stages
- Scope: agree payment methods, GBP flows, partner contracts, roles, regulatory analysis and card-data boundaries.
- Prototype: connect sandbox and test authorisation, capture and refund journeys.
- Harden: implement access controls, secure development, logging, key rotation and applicable PCI controls.
- Validate: complete partner certification where required, security assessment, SCA and reconciliation tests; resolve findings.
- Release: approve production credentials and start with approved merchants and limited volume.
Test approval, decline, frictionless and challenged SCA, failed or cancelled authentication, eligible exemptions where supported, expiry, reversal, partial capture, refund, dispute and provider outage. Verify signed webhooks, deduplicate replays and reconcile out-of-order events against provider status.
Acceptance test: a £120 request times out. Mark it unconfirmed, query the original provider ID, create no second charge while unresolved, and reconcile the eventual status. Escalate unresolved cases to the named support owner and retain test IDs and logs without PAN or SAD.
Launch only after agreed partner approvals, PCI evidence, security and accessibility checks, demonstrated settlement reconciliation, incident contacts and a tested rollback or recovery plan. The launch owner records residual risks and delays launch when mandatory gates are unmet.
Plan the schedule around dependencies: start partner and regulatory review alongside discovery; build the sandbox integration once specifications are agreed; run security and failure-path tests before required certification; then remediate findings and complete production approval. Confirm milestones with each owner; partner lead times and rework affect launch.
Estimate Three-Year Costs Before You Build
No single UK price fits every gateway. These invented offers assume one merchant, GBP cards, one UK acquirer, business-hours support and constant rates for 36 months; they are not market quotes.
Cost item | Option A: custom | Option B: hosted/hybrid |
|---|---|---|
Initial implementation | £80,000 | £30,000 |
Operations: 36 months | £2,000 × 36 = £72,000 | £3,000 × 36 = £108,000 |
Gateway fee per transaction | £0.05 | £0.10 |
Total at 10,000 transactions/month | £152,000 + £18,000 = £170,000 | £138,000 + £36,000 = £174,000 |
Total at 20,000 transactions/month | £152,000 + £36,000 = £188,000 | £138,000 + £72,000 = £210,000 |
Formula: setup + 36 months of fixed charges + transaction charges + priced changes and exit. In this example, A has £14,000 higher three-year fixed costs but saves £0.05 per transaction. The break-even volume is 280,000 transactions over three years, or about 7,778 per month. Below that, B costs less; above it, A costs less, if all assumptions remain unchanged. Real rates may change with volume.
Assume routine hosting and support are included in fixed charges; independent PCI assessment and remediation, certification, material changes, fraud tools and exit are unpriced. Totals exclude VAT, acquiring, interchange, scheme and chargeback fees, reserves and financing; VAT recoverability is not calculated. Price missing items consistently and avoid double-counting bundled charges. Revised fees or scope change the break-even point.
Choose Partners and Plan Ongoing Operations
Ask each candidate: which functions and regulated roles are included; which acquirer integrations work in production; can it demonstrate £120 timeout recovery; who owns PCI controls and incidents; and what are the three-year costs, code rights and exit support? Request an architecture, responsibility matrix, pricing and test evidence.
Agree support hours, settlement schedules, API limits and incident notification. Monitor authorisation rate by provider, card type and decline reason; track webhook failures, refunds, chargebacks and reconciliation exceptions. A named operations owner investigates unmatched transactions and escalates unresolved settlement issues to the acquirer. Assign dispute evidence, customer support and incident communications to specific teams.
Rehearse outage, certificate-expiry and compromise procedures. Test and record API upgrades, patches and credential rotations. Use fallback routing only where contracts, consent and tested integrations support it. Review controls and evidence throughout the year.
Frequently Asked Questions
How long does it take to build a payment gateway?
No universal timetable exists. Include partner onboarding, approvals, security remediation and certification.
Does a UK payment gateway need FCA authorisation?
It depends on activities and funds flow. A technical-only provider may qualify for an exclusion; a firm providing a regulated payment service may need authorisation or registration. Assess the actual model.
Does building a gateway make the business an acquirer?
No. Gateway software and acquiring perform different functions. A gateway can connect to a contracted acquirer; performing acquiring is a separate service requiring its own assessment.
Can hosted checkout remove PCI DSS responsibilities?
No. It can reduce exposure, but scope, eligibility and validation depend on the implementation. Confirm the applicable route with the acquirer or other compliance-accepting entity.
Can a gateway work with more than one acquirer?
Yes, if contracts and integrations allow it. Each connection needs appropriate certification, reconciliation, error handling and routing rules.
Launch Checklist and Conclusion
Before accepting live payments, confirm:
- Build, buy or hybrid decision and documented product scope.
- Contracted acquiring and processing partners with required capabilities and permissions.
- Merchant onboarding, underwriting and customer-support owners.
- Card-data flows, PCI scope, controls and validation evidence.
- UK regulatory, SCA, privacy and VAT assessments.
- Tested payment, refund, dispute, timeout and webhook scenarios.
- Reconciled sample settlement and assigned exception owner.
- Production credentials, monitoring, incident contacts and recovery plan.
- Three-year cost comparison and agreed exit terms.
- Named launch owner and recorded acceptance of residual risks.
After launch, monitor transactions, maintain evidence and review controls whenever the product, integration or provider changes.
Independent research
Ask AI whether Framnex fits your business.
Research Framnex with your preferred AI assistant and see where the platform may fit your client base, product and launch model.
The prompt will be prefilled. Review it before sending.