Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Release 6.10.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments authored and jenkins committed May 19, 2020
1 parent b1ce0cb commit e9cd621
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.ingenico.connect.gateway</groupId>
<artifactId>connect-sdk-java</artifactId>
<version>6.9.0</version>
<version>6.10.0</version>
<packaging>jar</packaging>

<name>connect-sdk-java</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,15 @@ public void example() throws URISyntaxException, IOException {
card.setCvv("123");
card.setExpiryDate("1220");

AmountOfMoney authenticationAmount = new AmountOfMoney();
authenticationAmount.setAmount(2980L);
authenticationAmount.setCurrencyCode("EUR");

RedirectionData redirectionData = new RedirectionData();
redirectionData.setReturnUrl("https://hostname.myownwebsite.url");

ThreeDSecure threeDSecure = new ThreeDSecure();
threeDSecure.setAuthenticationAmount(authenticationAmount);
threeDSecure.setAuthenticationFlow("browser");
threeDSecure.setChallengeCanvasSize("600x400");
threeDSecure.setChallengeIndicator("challenge-requested");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
*/
package com.ingenico.connect.gateway.sdk.java.domain.payment.definitions;

import com.ingenico.connect.gateway.sdk.java.domain.definitions.AmountOfMoney;

public class AbstractThreeDSecure {

private AmountOfMoney authenticationAmount = null;

private String authenticationFlow = null;

private String challengeCanvasSize = null;
Expand All @@ -20,6 +24,14 @@ public class AbstractThreeDSecure {

private Boolean skipAuthentication = null;

public AmountOfMoney getAuthenticationAmount() {
return authenticationAmount;
}

public void setAuthenticationAmount(AmountOfMoney value) {
this.authenticationAmount = value;
}

public String getAuthenticationFlow() {
return authenticationFlow;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
*/
package com.ingenico.connect.gateway.sdk.java.domain.payment.definitions;

import com.ingenico.connect.gateway.sdk.java.domain.definitions.AmountOfMoney;

/**
* Object containing the 3-D Secure specific results
*/
Expand All @@ -13,6 +15,8 @@ public class ThreeDSecureResults {

private String appliedExemption = null;

private AmountOfMoney authenticationAmount = null;

private String cavv = null;

private String directoryServerTransactionId = null;
Expand Down Expand Up @@ -59,6 +63,22 @@ public void setAppliedExemption(String value) {
this.appliedExemption = value;
}

/**
* Allows you to send in an authentication amount which can be greater or equal to the order amount.
* The currency code of the authentication amount should be the same as the currency code of the order amount.
*/
public AmountOfMoney getAuthenticationAmount() {
return authenticationAmount;
}

/**
* Allows you to send in an authentication amount which can be greater or equal to the order amount.
* The currency code of the authentication amount should be the same as the currency code of the order amount.
*/
public void setAuthenticationAmount(AmountOfMoney value) {
this.authenticationAmount = value;
}

/**
* CAVV or AVV result indicating authentication validation value
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ public class GetIINDetailsRequest {
private PaymentContext paymentContext = null;

/**
* The first digits of the credit card number from left to right with a minimum of 6 digits, or the full credit card number.
* The first digits of the credit card number from left to right with a minimum of 6 digits. Providing additional digits can result in more co-brands being returned.
*/
public String getBin() {
return bin;
}

/**
* The first digits of the credit card number from left to right with a minimum of 6 digits, or the full credit card number.
* The first digits of the credit card number from left to right with a minimum of 6 digits. Providing additional digits can result in more co-brands being returned.
*/
public void setBin(String value) {
this.bin = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/
public class MetaDataProvider {

private static final String SDK_VERSION = "6.9.0";
private static final String SDK_VERSION = "6.10.0";

private static final String SERVER_META_INFO_HEADER = "X-GCS-ServerMetaInfo";
static final Set<String> PROHIBITED_HEADERS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private Pattern buildPropertyPattern(Set<String> propertyNames) {
Iterator<String> iterator = propertyNames.iterator();

/*
* Regex to create: (["'])(X|Y|Z)\1\s*:\s*(?:(["'])(.*?)(?<!\\)\3|([^"'\s\[\{]\S*))
* Regex to create: (["'])(X|Y|Z)\1\s*:\s*(?:(["'])(.*?)(?<!\\)\3|([^"'\s\[\{][\S&&[^,]]*))
* Groups:
* 1: opening " or ' for the property name
* 2: property name
Expand All @@ -41,7 +41,7 @@ private Pattern buildPropertyPattern(Set<String> propertyNames) {
while (iterator.hasNext()) {
regex.append('|').append(Pattern.quote(iterator.next()));
}
regex.append(")\\1\\s*:\\s*(?:([\"'])(.*?)(?<!\\\\)\\3|([^\"'\\s\\[\\{]\\S*))");
regex.append(")\\1\\s*:\\s*(?:([\"'])(.*?)(?<!\\\\)\\3|([^\"'\\s\\[\\{][\\S&&[^,]]*))");

// not case insensitive
final int flags = Pattern.DOTALL;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"value": *****
"value": ****,
"value": {
}
}

0 comments on commit e9cd621

Please sign in to comment.