Merge pull request #9 from rbkmoney/ft/added_mobile_pay

Added mobile pay step
This commit is contained in:
Inal Arsanukaev 2019-07-19 17:12:47 +03:00 committed by GitHub
commit 0177b4cc53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 4 deletions

View File

@ -8,7 +8,7 @@
<groupId>com.rbkmoney</groupId>
<artifactId>adapter-common-lib</artifactId>
<version>0.0.7-SNAPSHOT</version>
<version>0.0.8</version>
<description></description>

View File

@ -4,6 +4,7 @@ public enum Step {
PRE_AUTH,
AUTH,
AUTH_MOBILE_PAY,
FINISH_THREE_DS,
AWAIT_CALLBACK,
CANCEL,
@ -16,6 +17,7 @@ public enum Step {
AUTH_RECURRENT,
GENERATE_TOKEN_AUTH,
GENERATE_TOKEN_AUTH_MOBILE_PAY,
GENERATE_TOKEN_FINISH_THREE_DS,
GENERATE_TOKEN_CAPTURE,
GENERATE_TOKEN_REFUND,

View File

@ -31,7 +31,7 @@ public class PaymentCallbackHandler implements CallbackHandler<PaymentCallbackRe
@Override
public PaymentCallbackResult handleCallback(ByteBuffer callback, PaymentContext context) {
AdapterContext adapterContext = adapterSerializer.getAdapterContext(context);
adapterContext.setNextStep(Step.FINISH_THREE_DS);
adapterContext.setStep(Step.FINISH_THREE_DS);
Callback callbackObj = callbackSerializer.read(callback.array());
adapterContext.setPaRes(callbackObj.getPaRes());
adapterContext.setMd(callbackObj.getMd());

View File

@ -33,7 +33,7 @@ public class RecurrentTokenCallbackHandler implements CallbackHandler<RecurrentT
@Override
public RecurrentTokenCallbackResult handleCallback(ByteBuffer callback, RecurrentTokenContext context) {
AdapterContext adapterContext = adapterSerializer.getAdapterContext(context);
adapterContext.setNextStep(Step.GENERATE_TOKEN_FINISH_THREE_DS);
adapterContext.setStep(Step.GENERATE_TOKEN_FINISH_THREE_DS);
Callback callbackObj = callbackSerializer.read(callback.array());
adapterContext.setPaRes(callbackObj.getPaRes());
adapterContext.setMd(callbackObj.getMd());

View File

@ -25,6 +25,6 @@ public class AdapterContext {
private Instant maxDateTimePolling;
private String trxId;
private Step nextStep;
private Step step;
}