File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ name : Payment Test Form
3+ declaration : " <p class=\" govuk-body\" >All the answers you have provided are true to the best of your knowledge.</p>"
4+ pages :
5+ - title : A page title
6+ path : ' /pay-for-your-licence'
7+ components :
8+ - name : pageGuidance
9+ type : Html
10+ title : Guidance
11+ content : " <p class=\" govuk-body\" >Random guidance</p>"
12+ options : {}
13+ - name : licencePayment
14+ title : Payment details required
15+ type : PaymentField
16+ options :
17+ required : true
18+ amount : 300
19+ description : Processing fee for your application.
20+ next :
21+ - path : ' /summary'
22+ - title : Summary
23+ path : ' /summary'
24+ controller : ' ./pages/summary.js'
25+ components : []
26+ next : []
27+ conditions : []
28+ sections : []
29+ lists : []
30+ startPage : ' /pay-for-your-licence'
Original file line number Diff line number Diff line change @@ -58,5 +58,12 @@ export const formsService = async () => {
5858 slug : 'simple-form'
5959 } )
6060
61+ await loader . addForm ( 'src/server/forms/payment-test.yaml' , {
62+ ...metadata ,
63+ id : 'b2c3d4e5-f6a7-8901-bcde-f01234567890' ,
64+ title : 'Payment Test Form' ,
65+ slug : 'payment-test'
66+ } )
67+
6168 return loader . toFormsService ( )
6269}
You can’t perform that action at this time.
0 commit comments