# Payment settings: providers, accounts and fees

Source: https://govform.com/resources/documentation/article/service-payment-settings
Topic: Service Settings

**In Govform Builder**

Your library → Services → Your service → Service settings → Payment

Configure payments in **Service settings → Access & integrations → Payment**. Use your own merchant account, choose the fee rules and test the complete applicant journey before publishing.

The four tabs are **Connection**, **Payment details**, **When does this fee apply?** and **Test outcomes**. These collect applicant fees into your own merchant account; they are separate from paying Govform for an account subscription.

## Choose a supported provider connection

Provider availability and your service’s setup status are separate. **Early access** connections require merchant-account validation during setup. **On request** providers support design and simulation while Govform Support arranges the connection.

| Provider | Supported connection | Availability |
| --- | --- | --- |
| GOV.UK Pay | Payments API, hosted payment pages | Available |
| Access PaySuite / Pay360 | Payment Page REST | Early access |
| Worldpay | Access Hosted Payment Pages | Early access |
| Adyen | Hosted Checkout, manual capture | Early access |
| Global Payments | GP API Hosted Payment Page | Early access |
| Stripe | Hosted Checkout Sessions | Early access |
| PayPal Checkout | Orders v2 | Early access |
| Civica Income Management / Cybersource | Connection arranged with Support | On request |

The supported product matters: Global Payments legacy Realex HPP credentials, for example, do not work with the GP API connection. Use the requirements shown for your selected provider.

## Connect your account

**In Govform Builder**

Your library → Services → Your service → Service settings → Payment → Connection

1.  Enable payment and select the provider in the **Connection** tab. For an On request provider, follow **Request this payment provider** and add it to the service.
2.  Enter the required **Account details** for each environment: test details for QA and Staging, live details for Production. Library administrators can create or select shared details stored in library Properties and encrypted Secrets; the service keeps their names, never credential values. Designers select existing entries. Review every environment value before saving shared details; see [Properties and Secrets](<https://govform.com/resources/documentation/article/20-12-library-properties-and-secrets>).
3.  Set the minimum and maximum amounts agreed for the account in the currency’s smallest ISO unit: for GBP, 7500 means £75.00. Configure any notifications using the environment addresses shown in Builder and reachable HTTPS. Adyen requires manual capture and signed AUTHORISATION, CAPTURE and CAPTURE\_FAILED notifications.
4.  Save payment settings. **Check QA connection** checks read access without taking a payment or saving changes. For GOV.UK Pay it checks read access; PaySuite checks page reachability rather than credentials or collection. It does not establish that checkout, return, 3DS or notifications will work.

When replacing an account, keep its original saved details until outstanding payments are resolved. Switch to a different saved entry rather than overwriting details that those attempts still need.

## Account details reference

The shared account Property contains `id`, staff-facing `label`, `mode` (test for QA/Staging, live for Production), and positive `minimumAmount`/`maximumAmount` in ISO minor units. Builder supplies the mode from the environment. Credential values belong only in Secrets.

| Provider | Account fields beyond name and amount limits | Secrets |
| --- | --- | --- |
| GOV.UK Pay | Your own account reference. | API key and webhook signing key. |
| Access PaySuite | Your account reference and digits-only installation ID. | API username and password. |
| Worldpay Access HPP | Entity and statement narrative (up to 24 characters). | API username and password. |
| Adyen Hosted Checkout | Merchant account, theme ID and Production live endpoint prefix; manual capture is required. | API key and notification signing key. |
| Global Payments GP API | Transaction account ID beginning TRA\_ and merchant ID beginning MER\_. | Application ID and application key. |
| Stripe Checkout | Your own account reference. | API key. |
| PayPal Checkout | PayPal merchant ID. | Client ID and client secret. |

Use the selected provider's current account requirements and environment notification URLs. Civica and Cybersource require the Support setup route before real execution; do not treat a catalogue entry or ticket completion as a configured account. Live GOV.UK Pay notification URLs outside .gov.uk need the provider’s exception; Govform does not verify that approval. Notifications need a reachable registered URL; PaySuite receives an attempt-specific notification address. Adyen needs signed AUTHORISATION, CAPTURE and CAPTURE\_FAILED notifications.

Adyen requires a signed-in payer email and a response reference of at most 43 characters; Global Payments references are limited to 50 characters. Review reference templates against the chosen provider. Descriptions may be shortened for provider display.

## Set the charge and exemptions

**In Govform Builder**

Your library → Services → Your service → Service settings → Payment → Payment details

In **Payment details**, enter the public payee, description, reference and currency. Choose a currency enabled on the merchant account and supported by the selected connection; GOV.UK Pay uses GBP.

Use a positive **Fixed amount**, or **Calculated from answers** with server-side Liquid. Enter amounts in major units, such as `75.50` for £75.50. A calculated zero means no payment is required and the response completes normally. Blank, negative or invalid amounts are errors.

Under **When does this fee apply?**, apply the fee to all applicants or use conditions for exemptions. Conditions are checked before the calculated amount. Include every answer, declaration and Check your answers page before the final submit.

## Service payment settings reference

These properties belong in the service definition's optional `payment` object. They configure a charge; they are not the runtime result returned as `form.payment`.

| Property | Meaning / values |
| --- | --- |
| `enabled` | String true/false. Enabled payments need complete, valid fee and provider setup. |
| `paymentProvider` | govukPay, paySuite, worldpay, adyen, globalPayments, stripe, paypal, civica or cybersource. Readiness is shown above. |
| `paymentAccountProperty` | The name of the shared account Property, not its resolved JSON value. |
| `paymentApiSecret`, `paymentPasswordSecret`, `paymentWebhookSecret` | Names of library Secrets required by the selected provider. Only applicable credential controls are shown. |
| `paymentCurrency` | Provider-supported uppercase ISO currency. Existing omitted values mean GBP; new defaults use a supported library currency. Regional currency changes do not rewrite it. |
| `paymentAmountMode`, `paymentAmount` | fixed or calculated. Amount is a string in major units, or a calculated/Liquid value. Fixed must be positive; calculated zero means no payment required. |
| `paymentPayee`, `paymentDescription`, `paymentReference` | Applicant-facing payee, description and optional reference. The normal reference is `{{ form.submissionId }}`. |
| `conditionIds`, `conditionsOperator`, `conditionsOperatorNot` | Existing conditions, joined with and/or and optional string true/false inversion. Conditions are checked before calculating the amount. |
| `paymentSimulation` | received, pending, cancelled, declined, expired or unresolved for simulated testing. |
| `supportTicketId` | Optional Support association created through the authorised request/attachment flow. It is not a payment credential or an execution approval. |

Add payment help/contact information to **Service settings → Service details → Footer → Footer text**; it appears on payment pages too. Completion actions must not change the accepted answers/cart or reopen a paid response.

## Test and publish

**In Govform Builder**

Your library → Services → Your service → User view

Your library → Services → Your service → Environments → QA environment

User view simulates payments. QA and Staging can also simulate an On request connection or missing mandatory connection setup. Invalid configuration or failures from a configured real provider remain errors. Simulation takes no money; actions, emails and workflows still follow their normal environment behaviour. Production never simulates: an unavailable connection prevents submission.

Test success, pending, decline, cancellation, expiry and unresolved outcomes. Then use your provider’s permitted test account to check the exact amount and reference, hosted checkout, return, notifications, receipt and recovery. Publish the service and its environment settings through the normal deployment process.

## Which services can take payment?

Payment supports signed-in services with one payment after the final submit. Task lists need an End task. Anonymous services, embedded child forms and managed Collection forms cannot take payments. Subscriptions, instalments, saved cards and payment partway through a journey are outside this payment flow.

Next: [Understand payment completion, recovery and casework](<https://govform.com/resources/documentation/article/payment-journey-and-casework>), or [explore payment capabilities](<https://govform.com/features/payments>).
