Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/com/shift4/request/ThreeDSecureRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public External status(Status status) {
return this;
}

enum Status {
public enum Status {
Y, N, A, U, R, E
}
}
Expand Down
23 changes: 23 additions & 0 deletions src/main/java/com/shift4/response/ChargeFlow.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public class ChargeFlow {
private ChargeFlowActionType nextAction;
private Redirect redirect;
private String returnUrl;
private QrCode qrCode;

public ChargeFlowActionType getNextAction() {
return nextAction;
Expand All @@ -20,6 +21,10 @@ public String getReturnUrl() {
return returnUrl;
}

public QrCode getQrCode() {
return qrCode;
}

public ChargeFlow nextAction(ChargeFlowActionType nextAction) {
this.nextAction = nextAction;
return this;
Expand All @@ -35,6 +40,11 @@ public ChargeFlow returnUrl(String returnUrl) {
return this;
}

public ChargeFlow qrCode(QrCode qrCode) {
this.qrCode = qrCode;
return this;
}

public static class Redirect {
private String redirectUrl;

Expand All @@ -47,4 +57,17 @@ public Redirect redirectUrl(String redirectUrl) {
return this;
}
}

public static class QrCode {
private String imgSrc;

public String getImgSrc() {
return imgSrc;
}

public QrCode imgSrc(String imgSrc) {
this.imgSrc = imgSrc;
return this;
}
}
}