mirror of
https://github.com/valitydev/adapter-common-lib.git
synced 2024-11-06 10:15:23 +00:00
Merge pull request #9 from rbkmoney/ft/added_mobile_pay
Added mobile pay step
This commit is contained in:
commit
0177b4cc53
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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());
|
||||
|
@ -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());
|
||||
|
@ -25,6 +25,6 @@ public class AdapterContext {
|
||||
private Instant maxDateTimePolling;
|
||||
private String trxId;
|
||||
|
||||
private Step nextStep;
|
||||
private Step step;
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user