Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
02f73aa
feat(engine): add PaymentField component scaffolding for GOV.UK Pay i…
mokhld Jan 20, 2026
6d004f1
feat(types): add optional paymentService to Services interface
mokhld Jan 21, 2026
f8f5b94
feat(forms): add payment section for unicorn breeder licence with GOV…
mokhld Jan 21, 2026
6a45f7c
feat(engine): integrate PaymentField component into component creatio…
mokhld Jan 21, 2026
ceb55ee
Changed dispatcher to async
jbarnsley10 Jan 21, 2026
1e07fac
Merge branch 'feat/df-623-payment' of https://github.com/DEFRA/forms-…
jbarnsley10 Jan 21, 2026
4098209
WIP: add paymentfield.html
mokhld Jan 21, 2026
411b1b6
Merge branch 'main' into feat/df-623-payment
mokhld Jan 21, 2026
d44d758
feat(types): define PaymentService interface
mokhld Jan 21, 2026
7cafbea
fix(PaymentField): format amount to two decimal places in view model
mokhld Jan 21, 2026
6d49994
feat(payment): Add payment field UI styling and hide Continue until p…
mokhld Jan 21, 2026
6bbd766
Added implementation for createPayment
jbarnsley10 Jan 21, 2026
84c23fa
Merge branch 'feat/df-623-payment' of https://github.com/DEFRA/forms-…
jbarnsley10 Jan 21, 2026
393f3da
feat(devserver): Add payment-test form for PaymentField development
mokhld Jan 21, 2026
6b6d396
fix(PaymentField): convert payment amount to pence for payment proces…
mokhld Jan 21, 2026
9c316c3
WIP
mokhld Jan 21, 2026
1fa9b37
Styling fix
jbarnsley10 Jan 22, 2026
caa6073
WIP: progress commit
mokhld Jan 22, 2026
41fbf7a
Fixed tests
jbarnsley10 Jan 22, 2026
28c5566
feat(payment): add payment expired notification banner
mokhld Jan 22, 2026
7591d88
Handles test/live API key
jbarnsley10 Jan 23, 2026
a3aa743
Merge branch 'feat/df-623-payment-2' of https://github.com/DEFRA/form…
jbarnsley10 Jan 23, 2026
87adc2d
fix(summary): update button text from Accept and send to Accept and s…
mokhld Jan 23, 2026
960c118
feat(payment): add createdAt field to FormAdapterPayment and update r…
mokhld Jan 23, 2026
5debb87
refactor(sonar): reduce complexity
mokhld Jan 23, 2026
eabbe41
refactor(sonar): replace magic numbers with http-status-codes
mokhld Jan 23, 2026
41a710e
Added service and help tests
jbarnsley10 Jan 23, 2026
bbc727c
Merge branch 'feat/df-623-payment-2' of https://github.com/DEFRA/form…
jbarnsley10 Jan 23, 2026
1ee302a
Added some tests for PaymentField
jbarnsley10 Jan 26, 2026
17de9a6
More coverage on PaymentField
jbarnsley10 Jan 26, 2026
d325679
Corrected formating/linting
jbarnsley10 Jan 26, 2026
0e7b7c5
Added env var for tests
jbarnsley10 Jan 26, 2026
a34a866
chore(payment-test): add schema version to payment test form
mokhld Jan 23, 2026
dbc6e12
feat(payment): enhance email formatting to include payment details se…
mokhld Jan 23, 2026
536c86b
refactor: add factory for payment service, helpers, remove unneeded c…
mokhld Jan 26, 2026
30be6de
Payment route tests
jbarnsley10 Jan 26, 2026
9f59172
Merge branch 'feat/df-623-payment-2' of https://github.com/DEFRA/form…
jbarnsley10 Jan 26, 2026
a69a7ee
Extra route coverage
jbarnsley10 Jan 26, 2026
c32768c
test(payment): add tests for formatPaymentDate and formatPaymentAmoun…
mokhld Jan 26, 2026
a3ca63f
refactor: fix circular import
mokhld Jan 26, 2026
2c29585
Tests for payment-helper
jbarnsley10 Jan 27, 2026
3690961
Merge branch 'feat/df-623-payment-2' of https://github.com/DEFRA/form…
jbarnsley10 Jan 27, 2026
9cd6adb
feat(submission): implement building submission records for csv
mokhld Jan 27, 2026
5dd9502
Coverage on human v1
jbarnsley10 Jan 27, 2026
09aa7cd
Lint fix
jbarnsley10 Jan 27, 2026
a95c376
feat(payment): add payer email handling in payment state and pre-fill…
mokhld Jan 27, 2026
435ac07
Coverage on machine v2
jbarnsley10 Jan 27, 2026
005a269
Merge branch 'feat/df-623-payment-2' of https://github.com/DEFRA/form…
jbarnsley10 Jan 27, 2026
5340c7a
Corrected type
jbarnsley10 Jan 27, 2026
6ed0b82
Corrected types
jbarnsley10 Jan 27, 2026
7c95570
refactor: simplify formatPaymentDate function using date-fns
mokhld Jan 27, 2026
f069bfb
refactor(submission): update payment field names and descriptions for…
mokhld Jan 27, 2026
ccfb248
Fixed vulnerabilities with npm audit fix
jbarnsley10 Jan 28, 2026
25e9ff2
Merge branch 'feat/df-623-payment-2' of https://github.com/DEFRA/form…
jbarnsley10 Jan 28, 2026
dcad7b2
Removed pre-fill email as needs more thinking
jbarnsley10 Jan 28, 2026
0d97703
Extra coverage
jbarnsley10 Jan 28, 2026
acd3849
Sonar fix
jbarnsley10 Jan 28, 2026
09dc2b3
Merge pull request #295 from DEFRA/feat/df-623-payment-2
jbarnsley10 Jan 28, 2026
e9b0998
Merge branch 'main' into feat/df-623-payment
jbarnsley10 Jan 28, 2026
3010607
Sonar fix
jbarnsley10 Jan 28, 2026
730c973
Fixed formatting of buttons on payment page
jbarnsley10 Jan 28, 2026
018faa0
fix(payment): show confirmation message when navigating back after pr…
mokhld Jan 29, 2026
6852900
refactor(payment): move Save and exit button to form level
mokhld Jan 29, 2026
e49eee4
fix(payment): address PR review comments
mokhld Jan 29, 2026
2257708
revert: payment state handling
mokhld Jan 30, 2026
eaafa9f
refactor(payment): change payments structure to a single payment object
mokhld Jan 30, 2026
3cc88fa
Rework after review - part 1
jbarnsley10 Jan 30, 2026
41ec700
Stash
jbarnsley10 Jan 30, 2026
24a1f67
Rework after review
jbarnsley10 Feb 2, 2026
c1f2917
Sonar fix
jbarnsley10 Feb 2, 2026
cb7d9ea
Lint fix
jbarnsley10 Feb 2, 2026
ac6dc4f
Reworked types for payment state
jbarnsley10 Feb 2, 2026
752220f
Corrected check and tests
jbarnsley10 Feb 2, 2026
3f9ec59
Changed date/time format
jbarnsley10 Feb 3, 2026
7db18ca
Merge branch 'main' into feat/df-623-payment
jbarnsley10 Feb 3, 2026
c4409b3
Prevents access to summary if no payment yet
jbarnsley10 Feb 3, 2026
c9ccc2e
Merge branch 'feat/df-623-payment' of https://github.com/DEFRA/forms-…
jbarnsley10 Feb 3, 2026
b271e1a
Moved payment check logic
jbarnsley10 Feb 3, 2026
fa9f6bd
Handles missing payment via PaymentField state validation
jbarnsley10 Feb 4, 2026
2b3ac7d
Dummy commit
jbarnsley10 Feb 4, 2026
0d5e2bb
Typo
jbarnsley10 Feb 4, 2026
fd39f05
Corrected github workflow
jbarnsley10 Feb 4, 2026
9f098fe
Bumped model version
jbarnsley10 Feb 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/check-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ jobs:

analysis:
name: Analysis
if: ${{ always() && (github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request') }}
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request'
runs-on: ubuntu-24.04
needs: [build, tasks]

Expand All @@ -207,7 +207,7 @@ jobs:
uses: actions/cache/restore@v4
with:
enableCrossOsArchive: true
fail-on-cache-miss: false
fail-on-cache-miss: true
key: test-unit-${{ runner.os }}-node24-${{ github.sha }}
path: coverage

Expand Down
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ It is designed to be embedded in the frontend of a digital service and provide a

## Table of Contents

- [Demo of DXT](#demo-of-dxt)
- [Installation](#installation)
- [Documentation](#documentation)
- [Publishing the Package](#publishing-the-package)
- [Semantic Versioning Control](#semantic-versioning-control)
- [Major-Version Release Branches](#major-version-release-branches)
- [Manual Workflow Triggers](#manual-workflow-triggers)
- [Workflow Triggers](#workflow-triggers)
- [Safety and Consistency](#safety-and-consistency)
- [@defra/forms-engine-plugin](#defraforms-engine-plugin)
- [Table of Contents](#table-of-contents)
- [Demo of DXT](#demo-of-dxt)
- [Installation](#installation)
- [Documentation](#documentation)
- [Contributing](#contributing)
- [Publishing the package](#publishing-the-package)
- [Semantic Versioning Control](#semantic-versioning-control)
- [Major-Version Release Branches](#major-version-release-branches)
- [Manual Workflow Triggers](#manual-workflow-triggers)
- [Workflow Triggers](#workflow-triggers)
- [Safety and Consistency](#safety-and-consistency)

## Demo of DXT

Expand Down
1 change: 1 addition & 0 deletions jest.setup.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ process.env.UPLOADER_BUCKET_NAME = 'dummy-bucket'
process.env.GOOGLE_ANALYTICS_TRACKING_ID = 'G-123456789'
process.env.SUBMISSION_EMAIL_ADDRESS = 'dummy@defra.gov.uk'
process.env.ORDNANCE_SURVEY_API_KEY = 'dummy'
process.env.PAYMENT_PROVIDER_API_KEY_TEST_formid = 'test-api-key'
Loading
Loading