Add 3DS 2.0 fields and steps

This commit is contained in:
a.romanov 2021-05-17 11:51:41 +03:00
parent 4ee25d5a2d
commit 372f6ce03e
4 changed files with 13 additions and 2 deletions

View File

@ -13,7 +13,7 @@
</parent>
<artifactId>adapter-common-lib</artifactId>
<version>0.0.28</version>
<version>0.0.29</version>
<packaging>jar</packaging>
<name>adapter-common-lib</name>

View File

@ -10,7 +10,10 @@ public enum ThreeDsFields {
MD("MD"),
PA_REQ("PaReq"),
PA_RES("PaRes"),
TERM_URL("TermUrl");
TERM_URL("TermUrl"),
THREE_DS_METHOD_DATA("ThreeDsMethodData"),
C_REQ("creq"),
THREE_DS_SESSION_DATA("threeDSSessionData");
private final String value;
}

View File

@ -6,6 +6,8 @@ public enum Step {
AUTH,
AUTH_MOBILE_PAY,
FINISH_THREE_DS,
FINISH_THREE_DS_V1,
FINISH_THREE_DS_V2,
AWAIT_CALLBACK,
CANCEL,
REFUND,
@ -19,6 +21,9 @@ public enum Step {
GENERATE_TOKEN_AUTH,
GENERATE_TOKEN_AUTH_MOBILE_PAY,
GENERATE_TOKEN_FINISH_THREE_DS,
GENERATE_TOKEN_FINISH_THREE_DS_V1,
GENERATE_TOKEN_FINISH_THREE_DS_V2,
GENERATE_TOKEN_AWAIT_CALLBACK,
GENERATE_TOKEN_CAPTURE,
GENERATE_TOKEN_CANCEL,
GENERATE_TOKEN_REFUND,

View File

@ -18,6 +18,9 @@ public class AdapterContext {
private String acsUrl;
private String termUrl;
private String terminationUri;
private String cReq;
private String threeDsMethodData;
private String threeDsSessionData;
private String trxId;
private Step step;
private Map<String, String> options;