Skip to content

Commit 6fb4fe2

Browse files
authored
Merge pull request #1039 from alphagov/PP-14695-Update-Test-Pay-Integration-Content-For-Testing-Modes
Update Test your integration page for testing modes
2 parents 53440b8 + 9c7068d commit 6fb4fe2

7 files changed

Lines changed: 178 additions & 153 deletions

File tree

source/integrate_with_govuk_pay/index.html.md.erb

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Integrate with the GOV.UK Pay API
3-
last_reviewed_on: 2025-11-13
3+
last_reviewed_on: 2026-03-02
44
review_in: 6 months
55
weight: 2050
66
---
@@ -78,20 +78,13 @@ The following example UML sequence diagram shows a typical happy-path payment jo
7878

7979
## Identifying your user when they return to your service
8080

81-
We recommend using a cookie-based session to identify your user when they
82-
return to your service. You could use either encrypted client side sessions,
83-
or server-side sessions using session store.
81+
We recommend using a cookie-based session to identify users when they return to your service. You can use encrypted client-side sessions or server-side sessions with a session store.
8482

85-
We recommend that you do not encode any reference number or user-
86-
specific information in the `return_url`. For example, do not use
87-
`/payment_12345` at the end of your `return_url`.
83+
Do not put any reference numbers or user-specific information in the `return_url`. For example, do not add `/payment_12345` at the end of your `return_url`.
8884

89-
If you do, an attacker may be able to guess the reference in your
90-
`return_url` and gain access to another user's personal information displayed
91-
on your confirmation screen.
85+
If you do, an attacker may be able to guess the reference in your `return_url` and see another user’s personal information on the confirmation page.
9286

93-
You must [use HTTPS for your `return_url`](/security/#https), but you can use
94-
HTTP when your service is in sandbox or 'not live yet' mode.
87+
You must [use HTTPS for your `return_url`](/security/#https). You can use HTTP only when your service is in sandbox or ‘not live yet’ mode.
9588

9689
## Make sure that all payments are processed
9790

source/moto_payments/index.html.md.erb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Take payments over the phone or by post ('MOTO')
3-
last_reviewed_on: 2025-11-13
3+
last_reviewed_on: 2026-03-02
44
review_in: 6 months
55
weight: 2400
66
---
@@ -50,16 +50,18 @@ Email [govuk-pay-support@digital.cabinet-office.gov.uk](mailto:govuk-pay-support
5050
* both your organisation and any suppliers or delivery partners hold a valid AOC
5151
* you would like to take MOTO payments on your live service
5252

53-
We’ll email you to let you know when we’ve turned on MOTO payments.
53+
We will email you when we have enabled MOTO payments.
5454

5555
#### Worldpay - turn on MOTO payments on a live account
5656

57-
1. Create a new MOTO service that is separate from your online payments service - to do this, sign in to the [GOV.UK Pay admin tool](https://selfservice.payments.service.gov.uk) and select **Add a new service**.
57+
1. Create a new MOTO service that is separate from your online payments service. To do this, sign in to the [GOV.UK Pay admin tool](https://selfservice.payments.service.gov.uk) and select **Add a new service**.
5858

59-
1. You need to process MOTO payments on a separate MOTO merchant code to the one you use for online (non-MOTO) payments. If you do not already have a merchant code for MOTO payments, ask for one by contacting Government Banking. You’ll use this merchant code when you [connect your new service to your PSP](https://docs.payments.service.gov.uk/switching_to_live/#go-live).
59+
1. Get a MOTO merchant code for MOTO payments. Contact Government Banking if you need one. MOTO payments and online payments are processed with separate merchant codes.
6060

61-
1. Email [govuk-pay-support@digital.cabinet-office.gov.uk](mailto:govuk-pay-support@digital.cabinet-office.gov.uk) to confirm you and any suppliers or delivery partners comply with the latest version of PCI DSS. In the same email, let us know that would like to take MOTO payments on your account.
61+
1. Use this MOTO merchant code when you [connect your new service to your PSP](/switching_to_live/#go-live).
6262

63-
We’ll email you to let you know we’ve turned on MOTO payments.
63+
1. Email [govuk-pay-support@digital.cabinet-office.gov.uk](mailto:govuk-pay-support@digital.cabinet-office.gov.uk) to confirm PCI DSS compliance for you and any suppliers or delivery partners. In the same email, ask us to enable MOTO payments on your account.
64+
65+
We will email you when we have enabled MOTO payments.
6466

6567
You can still [take online payments](https://docs.payments.service.gov.uk/making_payments/) through your non-MOTO service.

source/quick_start_guide/index.html.md.erb

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Quick start
3-
last_reviewed_on: 2025-11-13
3+
last_reviewed_on: 2026-03-02
44
review_in: 6 months
55
weight: 1200
66
---
@@ -15,8 +15,7 @@ Read this section to learn about what to do to get started with GOV.UK Pay.
1515

1616
Before you start using GOV.UK Pay, you should:
1717

18-
* read how to [get started](https://www.payments.service.gov.uk/getstarted/) and decide if GOV.UK
19-
Pay is right for your service
18+
* read how to [get started](https://www.payments.service.gov.uk/getstarted/) and decide if GOV.UK Pay is right for your service
2019
* sign up to the [GOV.UK Pay admin tool](https://selfservice.payments.service.gov.uk/register/email-address)
2120
* create a service in the GOV.UK Pay admin tool
2221
* read the GOV.UK Service Manual guidance on [deploying new
@@ -47,24 +46,24 @@ To set up a payment link, [create an account](https://selfservice.payments.servi
4746

4847
## The GOV.UK Pay API
4948

50-
The GOV.UK Pay API is based on REST principles with endpoints returning data
51-
in JSON format, and standard HTTP error response codes. Our API
52-
lets you:
49+
You can use the GOV.UK Pay API to:
5350

5451
* begin and complete payments
5552
* view the event history for individual payments
5653
* view transactions, refunds, and disputes within a specified time period
5754
* issue full or partial refunds
5855
* create agreements to take recurring payments
5956

60-
You can create 2 types of API keys for your GOV.UK Pay service. These are:
57+
The API follows REST principles. Endpoints return JSON data and use standard HTTP status codes for errors.
6158

62-
- test API keys, for [testing your service before it goes live and for testing in sandbox mode](/testing_govuk_pay)
63-
- live API keys, for taking payments from your users after you [go live](/switching_to_live)
59+
You can create 2 types of API keys for your GOV.UK Pay service. You can create:
6460

65-
If your payment service provider (PSP) is Stripe, you can test how [transaction fees](/reporting/#psp-fees) and payments to your bank account work.
61+
* test API keys for a service that is [‘not live yet’](/testing_govuk_pay)
62+
* live API keys after [go live](/switching_to_live)
6663

67-
When you've signed up for GOV.UK Pay and created a service, follow these instructions to get started with our API and make a test API request.
64+
When you’ve signed up for GOV.UK Pay and created a service, create a test API key and make a test payment request.
65+
66+
You can still use test API keys for a service after it goes live.
6867

6968
## Test the API
7069

@@ -117,17 +116,15 @@ Read more about [taking payments](/making_payments/#take-a-payment).
117116

118117
### Simulate your users' payment journey
119118

120-
Go to the ``next_url`` with a browser, and you’ll see the payment screen. Choose a [mock card number](/testing_govuk_pay/#mock-card-numbers) and enter it to simulate a payment. For the other required details, enter some test information which should have:
119+
Go to the `next_url` with a browser, and you’ll see the payment page. Choose a [mock card number](/testing_govuk_pay/#use-mock-card-numbers) and enter it to simulate a payment. For the other required details, enter some test information, which should have:
121120

122121
* an expiry date that is in the future and in the format MM/YYYY or MM/YY
123-
124122
* a valid postcode
125123

126124
Submit the payment.
127125

128126
### View transactions at GOV.UK Pay admin tool
129127

130-
Select an account in the [GOV.UK Pay admin
131-
tool](https://selfservice.payments.service.gov.uk/), then select __Transactions__.
128+
Select an account in the [GOV.UK Pay admin tool](https://selfservice.payments.service.gov.uk/), then select **Transactions**.
132129

133130
You can also view test transactions using the API.

source/recurring_payments/index.html.md.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Take recurring payments
3-
last_reviewed_on: 2025-11-13
3+
last_reviewed_on: 2026-03-03
44
review_in: 6 months
55
weight: 2200
66
---
@@ -322,7 +322,7 @@ You can [read more about using webhooks to automatically receive updates](/webho
322322

323323
### Test your recurring payments integration
324324

325-
GOV.UK Pay have [mock card numbers for you to test your integration](/testing_govuk_pay/#mock-card-numbers), including a [mock card number for testing recurring payments](/testing_govuk_pay/#testing-recurring-payments-on-a-test-account). You can use this mock card number to set up an agreement with an initial payment, but further recurring payments will be declined.
325+
GOV.UK Pay have [mock card numbers for you to test your integration](/testing_govuk_pay/#use-mock-card-numbers). You can also use specific mock card numbers to test recurring payments.
326326

327327

328328
##Contacting your users

source/switch_payment_service_provider/switch_psp_to_stripe/index.html.md.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ You need to repeat the following process for each service you want to switch.
6969
1. Select **Settings**.
7070
1. Under **Payment provider**, select **Switch to Stripe**.
7171

72-
Complete the tasks on this screen to start switching to Stripe.
72+
Complete the tasks on this page to start switching to Stripe.
7373

7474

7575
### 2b. Make a test payment to complete the switch to Stripe

0 commit comments

Comments
 (0)