Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ public class CreateApmPaymentRequest extends BaseRequest {
private Long buyerMemberId;
private String apmOrderId;
private String clientIp;
private Integer clientPort;
private List<PaymentItem> items;
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class CreateDepositPaymentRequest extends BaseRequest {
private String callbackUrl;
private String posAlias;
private String clientIp;
private Integer clientPort;
private Card card;
private RoutingOptions routingOptions;
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ public class CreateFundTransferDepositPaymentRequest extends BaseRequest {
private Long buyerMemberId;
private String conversationId;
private String clientIp;
private Integer clientPort;
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class CreatePaymentRequest extends BaseRequest {
protected String conversationId;
protected String externalId;
protected String clientIp;
protected Integer clientPort;

@Builder.Default
protected PaymentPhase paymentPhase = PaymentPhase.AUTH;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ public class InitApmDepositPaymentRequest extends BaseRequest {
private String apmUserIdentity;
private Map<String, Object> additionalParams;
private String clientIp;
private Integer clientPort;
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ public class InitApmPaymentRequest extends BaseRequest {
private String apmUserIdentity;
private Map<String, Object> additionalParams;
private String clientIp;
private Integer clientPort;
private List<PaymentItem> items;
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class InitGarantiPayPaymentRequest extends BaseRequest {
protected String externalId;
protected String callbackUrl;
protected String clientIp;
protected Integer clientPort;
protected String paymentChannel;
protected Long buyerMemberId;
protected String bankOrderId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public class InitPosApmPaymentRequest extends BaseRequest {
private Long buyerMemberId;
private String bankOrderId;
private String clientIp;
private Integer clientPort;
protected List<PaymentItem> items;
private Map<String, Object> additionalParams;
private List<PosApmInstallment> installments;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class RetrieveLoyaltiesRequest extends BaseRequest {
private String secureFieldsToken;

private String clientIp;
private Integer clientPort;
private String conversationId;
private FraudCheckParameters fraudParams;
}
1 change: 1 addition & 0 deletions src/main/java/io/craftgate/request/VerifyCardRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class VerifyCardRequest extends BaseRequest {
private BigDecimal verificationPrice;
private Currency currency;
private String clientIp;
private Integer clientPort;
private String conversationId;
private String callbackUrl;
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public class MasterpassCreatePayment {
protected String conversationId;
protected String externalId;
protected String clientIp;
protected Integer clientPort;

@Builder.Default
protected PaymentPhase paymentPhase = PaymentPhase.AUTH;
Expand Down
2 changes: 2 additions & 0 deletions src/test/java/io/craftgate/sample/PaymentSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -979,6 +979,7 @@ void init_apm_deposit_payment() {
.externalId("optional-externalId")
.callbackUrl("https://www.your-website.com/craftgate-apm-callback")
.clientIp("127.0.0.1")
.clientPort(51520)
.build();

ApmDepositPaymentResponse response = craftgate.payment().initApmDepositPayment(request);
Expand Down Expand Up @@ -2508,6 +2509,7 @@ void verify_card_with_3ds() {
.verificationPrice(BigDecimal.TEN)
.currency(Currency.TRY)
.clientIp("127.0.0.1")
.clientPort(51520)
.build();

VerifyCardResponse response = craftgate.payment().verifyCard(request);
Expand Down
Loading