Use action required
This commit is contained in:
parent
f0786753bb
commit
cd65676aa5
1 changed files with 3 additions and 1 deletions
4
main.ts
4
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,
|
||||
});
|
||||
}),
|
||||
|
|
Loading…
Reference in a new issue