Skip to content

Commit 09dc2b3

Browse files
authored
Merge pull request #295 from DEFRA/feat/df-623-payment-2
Feat/df 623 payment 2
2 parents 6b6d396 + acd3849 commit 09dc2b3

41 files changed

Lines changed: 3024 additions & 397 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

jest.setup.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ process.env.UPLOADER_BUCKET_NAME = 'dummy-bucket'
1313
process.env.GOOGLE_ANALYTICS_TRACKING_ID = 'G-123456789'
1414
process.env.SUBMISSION_EMAIL_ADDRESS = 'dummy@defra.gov.uk'
1515
process.env.ORDNANCE_SURVEY_API_KEY = 'dummy'
16+
process.env.PAYMENT_PROVIDER_API_KEY_TEST = 'test-api-key'

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/server/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ export const FORM_PREFIX = ''
33
export const EXTERNAL_STATE_PAYLOAD = 'EXTERNAL_STATE_PAYLOAD'
44
export const EXTERNAL_STATE_APPENDAGE = 'EXTERNAL_STATE_APPENDAGE'
55
export const COMPONENT_STATE_ERROR = 'COMPONENT_STATE_ERROR'
6+
export const PAYMENT_EXPIRED_NOTIFICATION = 'PAYMENT_EXPIRED_NOTIFICATION'

src/server/forms/payment-test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
schema: 2
23
name: Payment Test Form
34
declaration: "<p class=\"govuk-body\">All the answers you have provided are true to the best of your knowledge.</p>"
45
pages:

src/server/plugins/engine/components/FormComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export class FormComponent extends ComponentBase {
191191
return value.filter(isFormValue)
192192
}
193193

194-
return this.isValue(value) ? value : null
194+
return this.isValue(value) ? (value as Item['value']) : null
195195
}
196196

197197
getContextValueFromState(

0 commit comments

Comments
 (0)