Skip to main content

betaThis is a new capability. Help us improve it and give your feedback on Slack.

Payment Field

Redirects the user to GOV.UK Pay to collect a payment before proceeding.

Preview

Before payment

Pay for your application

Application fee

Warning You may see a pending transaction in your bank account but you will only be charged when you submit the form.

You can submit the form after you have added your payment details.

Total amount:

£2,300.00

After payment

You have already authorised a payment for this form

Continue to submit the form. You will not be charged twice.

JSON definition

{
"type": "PaymentField",
"name": "fieldName",
"title": "Question title",
"hint": "",
"shortDescription": "",
"options": {
"amount": 0,
"description": ""
}
}

Properties

PropertyTypeRequiredDescription
hintstringNoHint text displayed below the field label to help the user answer the question.
shortDescriptionstringNoA short description of the field used in the check-your-answers summary.

Options

PropertyTypeRequiredDescription
amountnumberYesFixed payment amount in pence.
classesstringNoAdditional CSS classes applied to the component.
conditionalAmountsobjectNoCondition-based payment amounts. Each entry requires a condition name and amount in pence.
customValidationMessagesobjectNoA map of Joi error codes to custom error messages.
descriptionstringYesDescription shown on the GOV.UK Pay payment page.
emailFieldstringNoName of the form field containing the user's email address for the confirmation email.
instructionTextstringNoAlternative text read by screen readers in place of the field title.
optionalTextbooleanNoWhen true, appends '(optional)' to the field label.
requiredbooleanNoWhether the field must be filled in. Defaults to true.