GOV.UK Pay technical documentation - GOV.UK Pay
Skip to main content

GOV.UK Pay technical documentation

Use this technical documentation to find out how to:

  • use the GOV.UK Pay API
  • integrate your service with GOV.UK Pay

You can read non-technical information about:

  • creating a GOV.UK Pay service and selecting a payment service provider (PSP)
  • managing your account with Stripe or Adyen, which is replacing Stripe as GOV.UK Pay’s payment service provider
  • using the Apple Pay and Google Pay digital wallets
  • security and compliance

Contact us if you have any questions or feedback.

How much GOV.UK Pay costs

There’s no charge to use the GOV.UK Pay API.

You’ll still need to pay your PSP’s transaction fees. If you use GOV.UK Pay’s PSP, we’ll automatically deduct the transaction fee from each payment.

Documentation updates

These are the most recent changes to this documentation.

Publication date Update
25 Nov 2026 Update integration testing guidance to explain what you can test in ‘not live yet’ and sandbox modes when your service uses Adyen, and add more mock card numbers for testing payments with Adyen. Update Stripe-to-Adyen integration guidance to link to testing instructions and advise users to check automated tests that use Stripe mock card numbers.
24 Nov 2026 Update refund guidance to clarify that the same rules for checking refund status and taking refund amounts apply to Adyen and Stripe.
19 Nov 2026 Update MOTO guidance to clarify that instructions for turning on MOTO payments on a live service apply to Adyen as well as Stripe.
16 Nov 2026 Update guidance on reconciliation and reporting, Google Pay, MOTO, security and service settings to clarify which instructions apply when Adyen is PSP.
27 Oct 2026 Update Apple Pay testing guidance to explain how to test Apple Pay with Adyen using Apple’s sandbox test cards.
26 Oct 2026 Update reconciliation and reporting guidance to explain payouts for payments processed by Adyen, delays in availability of settlement_summary.captured_date, fee and net_amount, and additional Fee (gateway) column in CSV downloads.
26 Oct 2026 Clarify in recurring payments guidance that services using Adyen or Stripe do not need to take additional steps with their payment service provider before setting up recurring payments.
20 Oct 2026 Add guidance on connecting a live service to Adyen, including onboarding availability, Adyen checks and making a £1 payment to test connection.
15 Oct 2026 Update recurring payments guidance to explain how to check that a recurring payment agreement for Adyen is active before taking subsequent payments.
15 Oct 2026 Correct wallet card expiry guidance to explain that card_details.expiry_date is returned as null when value is unavailable for Adyen payments.
15 Oct 2026 Update dispute guidance to explain how dispute fees differ for payments processed by Stripe and Adyen.
15 Oct 2026 Add mock card details for Adyen to support payment testing.
15 Oct 2026 Update refund guidance and API reference to explain refund statuses, fees and reconciliation for payments processed by Adyen.
13 Oct 2026 Update API reference to explain payment amount limits, response attributes and when values become available for payments processed by Adyen.
12 Oct 2026 Add notices to API reference, integration and integration testing guidance about switching from Stripe to Adyen.
9 Oct 2026 Add guidance on switching a GOV.UK Pay service from Stripe to Adyen, including preparing for onboarding.
7 Oct 2026 Add guidance on how switching from Stripe to Adyen affects integrations with GOV.UK Pay.
10 Sep 2026 Expand API key security guidance and add warnings and links from relevant pages.
2 Sep 2026 Clarify MOTO and PCI DSS guidance about Attestation of Compliance requirement.
5 May 2026 Update integration testing guidance to explain successful test outcomes and what to do after testing.
11 Mar 2026 Update integration testing guidance to reflect ‘not live yet’ and sandbox testing modes, with revised mock cards and payment service provider-specific guidance.
11 Mar 2026 Clarify prerequisites for going live with Worldpay and group requirements in one place.
17 Feb 2026 Correct a Mastercard mock card number in integration testing guidance.
27 Jan 2026 Update MOTO guidance to emphasise PCI DSS compliance and need for an Attestation of Compliance.