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

Commit

Permalink
Release 6.15.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments authored and jenkins committed Sep 3, 2020
1 parent 094b7c9 commit e0c5994
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 15 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.14.0</version>
<version>6.15.0</version>
<packaging>jar</packaging>

<name>connect-sdk-java</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,14 @@ public void setMerchant(Merchant value) {
}

/**
* Object containing reference data for Google Pay.
* Object containing reference data for Google Pay (paymentProductId 320) and Apple Pay (paymentProductID 302).
*/
public MobilePaymentMethodSpecificInputHostedCheckout getMobilePaymentMethodSpecificInput() {
return mobilePaymentMethodSpecificInput;
}

/**
* Object containing reference data for Google Pay.
* Object containing reference data for Google Pay (paymentProductId 320) and Apple Pay (paymentProductID 302).
*/
public void setMobilePaymentMethodSpecificInput(MobilePaymentMethodSpecificInputHostedCheckout value) {
this.mobilePaymentMethodSpecificInput = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ public void setPaymentProduct302SpecificInput(MobilePaymentProduct302SpecificInp
}

/**
* Object containing information specific to Google Pay
* Object containing information specific to Google Pay (paymentProductId 320)
*/
public MobilePaymentProduct320SpecificInputHostedCheckout getPaymentProduct320SpecificInput() {
return paymentProduct320SpecificInput;
}

/**
* Object containing information specific to Google Pay
* Object containing information specific to Google Pay (paymentProductId 320)
*/
public void setPaymentProduct320SpecificInput(MobilePaymentProduct320SpecificInputHostedCheckout value) {
this.paymentProduct320SpecificInput = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ public void setAirlineData(AirlineData value) {
}

/**
* Object containing data related to installments.
* Object containing data related to installments which can be used for card payments and only with some acquirers. In case you send in the details of this object, only the combination of card products and acquirers that do support installments will be shown on the MyCheckout hosted payment pages.
*/
public Installments getInstallments() {
return installments;
}

/**
* Object containing data related to installments.
* Object containing data related to installments which can be used for card payments and only with some acquirers. In case you send in the details of this object, only the combination of card products and acquirers that do support installments will be shown on the MyCheckout hosted payment pages.
*/
public void setInstallments(Installments value) {
this.installments = value;
Expand Down Expand Up @@ -86,7 +86,7 @@ public void setLoanRecipient(LoanRecipient value) {
}

/**
* The number of installments
* The number of installments in which this transaction will be paid, which can be used for card payments. Only used with some acquirers. In case you send in the details of this object, only the combination of card products and acquirers that do support installments will be shown on the MyCheckout hosted payment pages.
*
* @deprecated Use installments.numberOfInstallments instead
*/
Expand All @@ -96,7 +96,7 @@ public Long getNumberOfInstallments() {
}

/**
* The number of installments
* The number of installments in which this transaction will be paid, which can be used for card payments. Only used with some acquirers. In case you send in the details of this object, only the combination of card products and acquirers that do support installments will be shown on the MyCheckout hosted payment pages.
*
* @deprecated Use installments.numberOfInstallments instead
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

public class DecryptedPaymentData {

private String authMethod = null;

private String cardholderName = null;

private String cryptogram = null;
Expand All @@ -20,6 +22,26 @@ public class DecryptedPaymentData {

private String paymentMethod = null;

/**
* The type of payment credential which the customer used.
* <ul class="paragraph-width">
* <li>For Google Pay, maps to the paymentMethodDetails.authMethod property in the encrypted payment data.
* </ul>.
*/
public String getAuthMethod() {
return authMethod;
}

/**
* The type of payment credential which the customer used.
* <ul class="paragraph-width">
* <li>For Google Pay, maps to the paymentMethodDetails.authMethod property in the encrypted payment data.
* </ul>.
*/
public void setAuthMethod(String value) {
this.authMethod = value;
}

/**
* Card holder's name on the card.
* <ul class="paragraph-width">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import com.ingenico.connect.gateway.sdk.java.domain.definitions.AmountOfMoney;

/**
* Object containing data related to installments.
* Object containing data related to installments which can be used for card payments and only with some acquirers. In case you send in the details of this object, only the combination of card products and acquirers that do support installments will be shown on the MyCheckout hosted payment pages.
*/
public class Installments {

Expand Down Expand Up @@ -76,14 +76,14 @@ public void setInterestRate(String value) {
}

/**
* The number of installments in which this transaction will be paid.
* The number of installments in which this transaction will be paid, which can be used for card payments. Only used with some acquirers. In case you send in the details of this object, only the combination of card products and acquirers that do support installments will be shown on the MyCheckout hosted payment pages.
*/
public Long getNumberOfInstallments() {
return numberOfInstallments;
}

/**
* The number of installments in which this transaction will be paid.
* The number of installments in which this transaction will be paid, which can be used for card payments. Only used with some acquirers. In case you send in the details of this object, only the combination of card products and acquirers that do support installments will be shown on the MyCheckout hosted payment pages.
*/
public void setNumberOfInstallments(Long value) {
this.numberOfInstallments = 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.14.0";
private static final String SDK_VERSION = "6.15.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 @@ -316,8 +316,20 @@ public void testUnmarshalStringInvalidSignature() throws IOException {

private byte[] readResource(String resource) throws IOException {

// the resources may contain \r but the body from which the signature was created doesn't
// strip those out while reading
/*
* The resources may contain \r on Windows machines, but the body from which the signature was created does not.
* Strip those out while reading.
*
* Note that this should not be done when creating webhooks endpoints. Signatures are created for bodies as they
* are sent. If such bodies contain \r then stripping out any \r will lead to a signature mismatch. Instead,
* it's best to read the body in chunks. For instance:
*
* byte[] buffer = new byte[1024];
* int len;
* while ((len = input.read(buffer)) != -1) {
* output.write(buffer, 0, len);
* }
*/

ByteArrayOutputStream output = new ByteArrayOutputStream();
InputStream input = new BufferedInputStream(getClass().getResourceAsStream(resource));
Expand Down

0 comments on commit e0c5994

Please sign in to comment.