Skip to content

Commit f42ef82

Browse files
authored
Merge pull request #949 from sourabhsaini11/draft-FIS12-PF-2.2.1
fix:add xinput in the select payload
2 parents 4e67346 + 721f983 commit f42ef82

File tree

1 file changed

+1
-1
lines changed
  • mock-service/src/config/mock-config/FIS12/2.2.1/select1

1 file changed

+1
-1
lines changed

mock-service/src/config/mock-config/FIS12/2.2.1/select1/generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export async function selectDefaultGenerator(existingPayload: any, sessionData:
4848
}
4949

5050
// Update form_response with status and submission_id (preserve existing structure)
51-
if (existingPayload.message?.order?.items?.[0]?.xinput?.form_response) {
51+
if (existingPayload.message?.order?.items) {
5252
existingPayload.message.order.items[0].xinput.form_response.status = "SUCCESS";
5353
existingPayload.message.order.items[0].xinput.form.id = "down_payment_form";
5454
existingPayload.message.order.items[0].xinput.form_response.submission_id = sessionData.down_payment_form;

0 commit comments

Comments
 (0)