We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 393f3da commit 6b6d396Copy full SHA for 6b6d396
1 file changed
src/server/plugins/engine/components/PaymentField.ts
@@ -142,8 +142,10 @@ export class PaymentField extends FormComponent {
142
const slug = `/${model.basePath}`
143
144
// 2. Call paymentService.createPayment()
145
+ // GOV.UK Pay expects amount in pence, so multiply pounds by 100
146
+ const amountInPence = Math.round(data.amount * 100)
147
const payment = await paymentService.createPayment(
- data.amount,
148
+ amountInPence,
149
data.description,
150
uuid,
151
data.reference,
0 commit comments