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

Commit

Permalink
Version 4.69
Browse files Browse the repository at this point in the history
  • Loading branch information
vpietri-tbd authored and thomasmonext committed Feb 9, 2022
1 parent f3802a0 commit 05793a6
Show file tree
Hide file tree
Showing 9 changed files with 121 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
----------------------------------------

* 4.69 (2022-01-19)
* Update WSDL from 4.68 to 4.69
* new parameters threeDSinfo, travelFileNumber for doAuthorization
* new parameters threeDSinfo, travelFileNumber for doImmediateWalletPayment


----------------------------------------

* 4.68 (2021-10-07)
* Update WSDL from 4.66 to 4.68
* add missing parameters merchantURL, merchantCountryCode for verifyEnrollment
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Add this dependency in your project's POM:
<dependency>
<groupId>com.payline</groupId>
<artifactId>payline-java-sdk</artifactId>
<version>4.68</version>
<version>4.69</version>
</dependency>
```

Expand All @@ -34,7 +34,7 @@ Add this dependency in your project's POM:
<dependency>
<groupId>com.payline</groupId>
<artifactId>payline-java-sdk</artifactId>
<version>4.68</version>
<version>4.69</version>
</dependency>
<dependency>
<groupId>javax.xml.ws</groupId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.payline</groupId>
<artifactId>payline-java-sdk</artifactId>
<version>4.68</version>
<version>4.69</version>
<name>Payline JAVA SDK Project</name>
<description>Modified for TBD using last WSDL from https://docs.monext.fr/display/DT/Endpoints. The Payline API provides access to the various functions of the Payline payment solution. It is based on standard web service components, which include the SOAP protocol, the WSDL and XSD definition languages. These standards are supported by a large range of development tools on multiple platforms. This SDK covers all the functions of the Payline payment solution.</description>

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/payline/kit/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public final class Utils {
/**
* kit version
*/
private static final String kitVersion = "kit JAVA v4.68";
private static final String kitVersion = "kit JAVA v4.69";

private static final String HTTP_PROXY_SET = "http.proxySet";
private static final String HTTP_PROXY_HOST = "http.proxyHost";
Expand Down
55 changes: 55 additions & 0 deletions src/main/java/com/payline/ws/wrapper/DirectPayment.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,59 @@ public final DoAuthorizationResponse doAuthorization(final Payment payment, fina
final String transientParam,
final Owner owner, final String media, final String asynchronousRetryTimeout, final String linkedTransactionId, final Recurring recurring
) {

return this.doAuthorization(payment, order, buyer,
card, privateDataList, authentication3DSecure,
bank, version, subMerchant,
transientParam, owner, media, asynchronousRetryTimeout, linkedTransactionId, recurring, null, null);
}

/**
* Carry out payment authorization requests. The <b>doAuthorization</b> function
* sends a debit authorization request to your bank authorization server.
*
* @param payment the payment object containing the amount, the
* currency, action and mode codes
* @param order the order object containing the ref, the
* amount, the currency, the date and cart content
* in details child. order.amount is required from
* 4.65.1
* @param buyer the buyer object, containing many information
* about the buyer: firstname, lastname, email,
* addresses,...
* @param card the card object, containing the card data :
* number, expirationDate, cvx,...
* @param privateDataList A list of privateData, allowing to send any
* kind of extra information organized with keys
* and values
* @param authentication3DSecure the authentication3DSecure object, filled with
* MD and PARES retrieved from the ACS after the
* customer entered his password
* @param bank the bankAccountData object, used for ELV
* payment only
* @param version the API version of Payline
* @param subMerchant sub-merchant info in case you're using Payline
* as a payment facilitator for other merchants
* @param transientParam Data to populate the 3DSV2 container
* @param owner
* @param media Detection of the media used during the payment.
* @param asynchronousRetryTimeout Numeric that specifies the period in minutes
* @param linkedTransactionId In case of installment, recurring or split shippment payment refers to the first authorization
* @param recurring Recurring or installment information
* @param threeDSInfo Information specific to 3DS authentication
* @param travelFileNumber
* @return DoAuthorizationResponse the response given by Payline to a debit
* authorization request
*/
@SuppressWarnings("squid:S00107")
public final DoAuthorizationResponse doAuthorization(final Payment payment, final Order order, final Buyer buyer,
final Card card, final PrivateDataList privateDataList, final Authentication3DSecure authentication3DSecure,
final BankAccountData bank, final String version, final SubMerchant subMerchant,
final String transientParam,
final Owner owner, final String media, final String asynchronousRetryTimeout, final String linkedTransactionId, final Recurring recurring,
final ThreeDSInfo threeDSInfo, final String travelFileNumber
) {
setException(null);
DoAuthorizationResponse result = new DoAuthorizationResponse();
DoAuthorizationRequest parameters = new DoAuthorizationRequest();
Expand All @@ -167,6 +220,8 @@ public final DoAuthorizationResponse doAuthorization(final Payment payment, fina
if (asynchronousRetryTimeout != null)
parameters.setAsynchronousRetryTimeout(asynchronousRetryTimeout);
parameters.setLinkedTransactionId(linkedTransactionId);
parameters.setThreeDSInfo(threeDSInfo);
parameters.setTravelFileNumber(travelFileNumber);
parameters.setRecurring(recurring);
final DirectPaymentAPI port;
try {
Expand Down
34 changes: 33 additions & 1 deletion src/main/java/com/payline/ws/wrapper/WalletPayment.java
Original file line number Diff line number Diff line change
Expand Up @@ -437,13 +437,43 @@ public final DoImmediateWalletPaymentResponse doImmediateWalletPayment(final Pay
* @param subMerchant sub-merchant info in case you're using Payline as a payment facilitator for other merchants
* @param recurring Recurring information
* @param linkedTransactionId Use to identify the first authorization request which initializes the payment (for merchants managing their own wallets).
* @param owner
* @param media Detection of the media used during the payment.
* @return DoImmediateWalletPaymentResponse
*/
public final DoImmediateWalletPaymentResponse doImmediateWalletPayment(final Payment payment, final Order order, final Buyer buyer,
final PrivateDataList privateDataList, final String walletId, final String Cardind, final String cvx, final Authentication3DSecure auth3ds,
final String version, final SubMerchant subMerchant, final Recurring recurring, final String linkedTransactionId, final String media) {

return this.doImmediateWalletPayment(payment, order, buyer,
privateDataList, walletId, Cardind, cvx, auth3ds,
version, subMerchant, recurring, linkedTransactionId, media, null, null);

}

/**
* Carry out a payment request from a customer wallet. The <b>doImmediateWalletPaymen</b> function makes a virtual wallet payment. With this function, you
* may use the payment in full (FUL) and deferred (DEF) payment methods. Payline will send return code 02308: payment method not accepted for other methods.
* @param payment the payment object containing the amount, the currency, action and mode codes
* @param order the order object containing the ref, the amount, the currency, the date and cart content in details child
* @param buyer the buyer object, containing many information about the buyer: firstname, lastname, email, addresses,...
* @param privateDataList A list of privateData, allowing to send any kind of extra information organized with keys and values
* @param walletId the wallet identifier
* @param Cardind within a wallet, index of the card to be used for payment
* @param cvx Card Verification Value associated to the Card Number
* @param auth3ds 3D Secure authentication data
* @param version the API version of Payline
* @param subMerchant sub-merchant info in case you're using Payline as a payment facilitator for other merchants
* @param recurring Recurring information
* @param linkedTransactionId Use to identify the first authorization request which initializes the payment (for merchants managing their own wallets).
* @param media Detection of the media used during the payment.
* @param threeDSInfo Information specific to 3DS authentication
* @param travelFileNumber
* @return DoImmediateWalletPaymentResponse
*/
@SuppressWarnings("squid:S00107")
public final DoImmediateWalletPaymentResponse doImmediateWalletPayment(final Payment payment, final Order order, final Buyer buyer,
final PrivateDataList privateDataList, final String walletId, final String Cardind, final String cvx, final Authentication3DSecure auth3ds,
final String version, final SubMerchant subMerchant, final Recurring recurring, final String linkedTransactionId, final String media,final ThreeDSInfo threeDSInfo, final String travelFileNumber) {
setException(null);
DoImmediateWalletPaymentResponse result = new DoImmediateWalletPaymentResponse();
DoImmediateWalletPaymentRequest parameters = new DoImmediateWalletPaymentRequest();
Expand All @@ -460,6 +490,8 @@ public final DoImmediateWalletPaymentResponse doImmediateWalletPayment(final Pay
parameters.setRecurring(recurring);
parameters.setLinkedTransactionId(linkedTransactionId);
parameters.setMedia(media);
parameters.setThreeDSInfo(threeDSInfo);
parameters.setTravelFileNumber(travelFileNumber);
final DirectPaymentAPI port;
try {
if (this.initFromFile) {
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/wsdls/DirectPaymentAPI.wsdl
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
<element name="subMerchant" nillable="true" type="tns1:subMerchant"/>
<element name="buyer" nillable="true" type="tns1:buyer"/>
<element name="linkedTransactionId" nillable="true" type="xsd:string"/>
<element minOccurs="0" name="travelFileNumber" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
Expand Down Expand Up @@ -132,6 +133,8 @@
<element name="subMerchant" nillable="true" type="tns1:subMerchant"/>
<element name="asynchronousRetryTimeout" nillable="true" type="xsd:string"/>
<element name="linkedTransactionId" nillable="true" type="xsd:string"/>
<element name="threeDSInfo" nillable="true" type="tns1:threeDSInfo"/>
<element minOccurs="0" name="travelFileNumber" nillable="true" type="xsd:string"/>
<element name="recurring" nillable="true" type="tns1:recurring"/>
</sequence>
</complexType>
Expand All @@ -154,6 +157,7 @@
<element name="privateDataList" nillable="true" type="tns1:privateDataList"/>
<element name="contractNumber" nillable="false" type="xsd:string"/>
<element name="linkedTransactionId" nillable="true" type="xsd:string"/>
<element minOccurs="0" name="travelFileNumber" nillable="true" type="xsd:string"/>
<element minOccurs="0" name="authentication3DSecure" nillable="true" type="tns1:authentication3DSecure"/>
<element name="resultContainer" nillable="true" type="xsd:string"/>
</sequence>
Expand Down Expand Up @@ -564,6 +568,8 @@
<element name="authentication3DSecure" nillable="true" type="tns1:authentication3DSecure"/>
<element name="subMerchant" nillable="true" type="tns1:subMerchant"/>
<element name="linkedTransactionId" nillable="true" type="xsd:string"/>
<element name="threeDSInfo" nillable="true" type="tns1:threeDSInfo"/>
<element minOccurs="0" name="travelFileNumber" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
Expand Down Expand Up @@ -990,6 +996,7 @@
<element name="pointOfSell" nillable="false" type="tns1:pointOfSell"/>
<element name="routingRule" nillable="false" type="tns1:routingRule"/>
<element name="linkedTransactionId" nillable="true" type="xsd:string"/>
<element minOccurs="0" name="travelFileNumber" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/wsdls/ExtendedAPI.wsdl
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
<element name="subMerchant" nillable="true" type="tns1:subMerchant"/>
<element name="buyer" nillable="true" type="tns1:buyer"/>
<element name="linkedTransactionId" nillable="true" type="xsd:string"/>
<element minOccurs="0" name="travelFileNumber" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
Expand Down Expand Up @@ -132,6 +133,8 @@
<element name="subMerchant" nillable="true" type="tns1:subMerchant"/>
<element name="asynchronousRetryTimeout" nillable="true" type="xsd:string"/>
<element name="linkedTransactionId" nillable="true" type="xsd:string"/>
<element name="threeDSInfo" nillable="true" type="tns1:threeDSInfo"/>
<element minOccurs="0" name="travelFileNumber" nillable="true" type="xsd:string"/>
<element name="recurring" nillable="true" type="tns1:recurring"/>
</sequence>
</complexType>
Expand All @@ -154,6 +157,7 @@
<element name="privateDataList" nillable="true" type="tns1:privateDataList"/>
<element name="contractNumber" nillable="false" type="xsd:string"/>
<element name="linkedTransactionId" nillable="true" type="xsd:string"/>
<element minOccurs="0" name="travelFileNumber" nillable="true" type="xsd:string"/>
<element minOccurs="0" name="authentication3DSecure" nillable="true" type="tns1:authentication3DSecure"/>
<element name="resultContainer" nillable="true" type="xsd:string"/>
</sequence>
Expand Down Expand Up @@ -564,6 +568,8 @@
<element name="authentication3DSecure" nillable="true" type="tns1:authentication3DSecure"/>
<element name="subMerchant" nillable="true" type="tns1:subMerchant"/>
<element name="linkedTransactionId" nillable="true" type="xsd:string"/>
<element name="threeDSInfo" nillable="true" type="tns1:threeDSInfo"/>
<element minOccurs="0" name="travelFileNumber" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
Expand Down Expand Up @@ -990,6 +996,7 @@
<element name="pointOfSell" nillable="false" type="tns1:pointOfSell"/>
<element name="routingRule" nillable="false" type="tns1:routingRule"/>
<element name="linkedTransactionId" nillable="true" type="xsd:string"/>
<element minOccurs="0" name="travelFileNumber" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/wsdls/WebPaymentAPI.wsdl
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
<element name="subMerchant" nillable="true" type="tns1:subMerchant"/>
<element name="buyer" nillable="true" type="tns1:buyer"/>
<element name="linkedTransactionId" nillable="true" type="xsd:string"/>
<element minOccurs="0" name="travelFileNumber" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
Expand Down Expand Up @@ -132,6 +133,8 @@
<element name="subMerchant" nillable="true" type="tns1:subMerchant"/>
<element name="asynchronousRetryTimeout" nillable="true" type="xsd:string"/>
<element name="linkedTransactionId" nillable="true" type="xsd:string"/>
<element name="threeDSInfo" nillable="true" type="tns1:threeDSInfo"/>
<element minOccurs="0" name="travelFileNumber" nillable="true" type="xsd:string"/>
<element name="recurring" nillable="true" type="tns1:recurring"/>
</sequence>
</complexType>
Expand All @@ -154,6 +157,7 @@
<element name="privateDataList" nillable="true" type="tns1:privateDataList"/>
<element name="contractNumber" nillable="false" type="xsd:string"/>
<element name="linkedTransactionId" nillable="true" type="xsd:string"/>
<element minOccurs="0" name="travelFileNumber" nillable="true" type="xsd:string"/>
<element minOccurs="0" name="authentication3DSecure" nillable="true" type="tns1:authentication3DSecure"/>
<element name="resultContainer" nillable="true" type="xsd:string"/>
</sequence>
Expand Down Expand Up @@ -564,6 +568,8 @@
<element name="authentication3DSecure" nillable="true" type="tns1:authentication3DSecure"/>
<element name="subMerchant" nillable="true" type="tns1:subMerchant"/>
<element name="linkedTransactionId" nillable="true" type="xsd:string"/>
<element name="threeDSInfo" nillable="true" type="tns1:threeDSInfo"/>
<element minOccurs="0" name="travelFileNumber" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
Expand Down Expand Up @@ -990,6 +996,7 @@
<element name="pointOfSell" nillable="false" type="tns1:pointOfSell"/>
<element name="routingRule" nillable="false" type="tns1:routingRule"/>
<element name="linkedTransactionId" nillable="true" type="xsd:string"/>
<element minOccurs="0" name="travelFileNumber" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
Expand Down

0 comments on commit 05793a6

Please sign in to comment.