From cd65676aa56a45365da76d24a5320b582a526a2f Mon Sep 17 00:00:00 2001 From: Jonatan Witoszek Date: Mon, 7 Aug 2023 17:44:17 +0200 Subject: [PATCH] Use action required --- main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.ts b/main.ts index 9f9ae6d..5113620 100644 --- a/main.ts +++ b/main.ts @@ -127,7 +127,9 @@ const routes = [ const action = json.action.actionType ?? "CHARGE"; return Response.OK({ pspReference: "initialize-test", - result: json?.data?.final ? `${action}_SUCCESS` : `${action}_REQUEST`, + result: json?.data?.final + ? `${action}_SUCCESS` + : `${action}_ACTION_REQUIRED`, amount, }); }),