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

Releases: Ingenico-ePayments/connect-sdk-nodejs

3.4.0

10 Mar 08:24
Compare
Choose a tag to compare
  • Added:
    • Added property encryptedCustomerInput to request type CreateTokenRequest.

3.3.0

20 Feb 09:31
Compare
Choose a tag to compare
  • Added:
    • Added property paymentProduct869SpecificInput to request type RedirectPaymentMethodSpecificInput.

3.2.0

08 Aug 09:37
Compare
Choose a tag to compare
  • Added:
    • Added properties initialSchemeTransactionId and merchantInitiatedReasonIndicator to request type CardPaymentMethodSpecificInput.
    • Added property initialSchemeTransactionId to request type CardPaymentMethodSpecificInputBase.
    • Added property exemptionRequest to request types ThreeDSecure and ThreeDSecureBase.

3.1.0

04 Jul 15:23
Compare
Choose a tag to compare
  • Added:
    • Added property loanRecipient to request type AdditionalOrderInput.

3.0.0

21 Jun 14:23
Compare
Choose a tag to compare
  • Added:
    • Added calls disputes.uploadFile and files.getFile to support uploading and downloading of files for disputes.
    • Added support for binary requests and responses:
      • Module connect-sdk-nodejs/utils/communicator is now an object with functions json and multipart, for sending JSON and multipart/form-data requests respectively (json can also be used for requests without bodies). Their inputs are the same as the old communicator function. For binary responses, the response objects' body property is a readable stream, and the objects contain an extra file object with meta-data like the file name and content type. For non-binary responses the response objects are unchanged.
      • Refactored module connect-sdk-nodejs/utils/connection. It now exposes functions sendJSON and sendMultipart, for sending JSON and multipart/form-data requests respectively (sendJSON can also be used for requests without bodies). sendJSON directly replaces send with the same input. sendMultipart requires an additional boundary, which should also be part of the content type. In addition, for both functions, the non-error result is now the complete response.
      • Module connect-sdk-nodejs/utils/headers exposes extra functions isBinaryContent, isJSON, dispositionFilename and contentLength. isBinaryContent and isJSON take a content type string and return a boolean. dispositionFilename takes a headers objects and returns a string or null. contentLength takes a headers object and returns a number or null.
  • Removed:
    • Removed call products.publicKey. It was only used for encryption for Android Pay. Now that Android Pay has been replaced by Google Pay, which uses a different mechanism for encryption, this call is no longer needed.

Unless you're using module connect-sdk-nodejs/utils/communicator or connect-sdk-nodejs/utils/connection directly, there are no breaking changes. Otherwise you need to perform the following steps:

  • If you're using module connect-sdk-nodejs/utils/communicator directly, use its nested json function instead of using the module as a function directly.
  • If you're using module connect-sdk-nodejs/utils/connection directly, replace uses of the send function with sendJSON, and change the handling of the response. You can check the connect-sdk-nodejs/utils/communicator module for an example.

2.30.0

07 Jun 07:12
Compare
Choose a tag to compare
  • Added:
    • Added properties paymentProduct1521SpecificInput, paymentProduct1522SpecificInput, paymentProduct1523SpecificInput, paymentProduct1524SpecificInput and paymentProduct1526SpecificInput to request type CashPaymentMethodSpecificInput.

2.29.0

28 May 10:55
Compare
Choose a tag to compare
  • Added:
    • Added property paymentProduct861SpecificInput to request type RedirectPaymentMethodSpecificInput.
    • Added property openId to request type RedirectPaymentProduct863SpecificInput.
  • Changed:
    • The JSON schemas no longer mark any property as required, leaving the requiredness validation up to the Server API.

2.28.0

03 May 14:36
Compare
Choose a tag to compare

This release contains several changes for 3-D Secure version 2. Several properties have been deprecated in favor of new properties. The deprecated properties will still work though.

  • Added:
    • Added property vatNumber to request type CompanyInformation.
    • Added property merchant to request types CreateHostedCheckoutRequest, CompletePaymentRequest, CreatePaymentRequest and RiskAssessment.
    • Added properties recurring, threeDSecure and unscheduledCardOnFileSequenceIndicator to request types CardPaymentMethodSpecificInput and CardPaymentMethodSpecificInputBase.
    • Added properties mobilePhoneNumber and workPhoneNumber to request type ContactDetails.
    • Added properties account, accountType, device and isPreviousCustomer to request type Customer.
    • Added properties directoryServerTransactionId, threeDSecureVersion and threeDServerTransactionId to request type ExternalCardholderAuthenticationData.
    • Added property customer to request type OrderApprovePayment.
    • Added property transactionType to request type OrderTypeInformation.
    • Added property redirectionData to request type RedirectPaymentMethodSpecificInput.
    • Added properties address, addressIndicator, comments, firstUsageDate, isFirstUsage, trackingNumber and type to request type Shipping.
    • Added properties giftCardPurchase, isPreOrder, preOrderItemAvailabilityDate and reOrderIndicator to request type ShoppingCart.
    • Added properties account, accountType, device and isPreviousCustomer to request type CustomerRiskAssessment.
    • Added property shipping to request type OrderRiskAssessment.
  • Deprecated:
    • Deprecated property isRegisteredCustomer of request type AirlineData in favor of new property Order.customer.accountType.
    • Deprecated property vatNumber of request type CustomerBase in favor of new property companyInformation.vatNumber.
    • Deprecated property addressesAreIdentical of request type FraudFields in favor of new property Order.shipping.addressIndicator.
    • Deprecated property cardOwnerAddress of request type FraudFields, which should be the same as existing property Order.customer.billingAddress.
    • Deprecated property defaultFormFill of request type FraudFields in favor of new property Order.customer.device.defaultFormFill.
    • Deprecated property deviceFingerprintActivated of request type FraudFields with no replacement.
    • Deprecated property deviceFingerprintTransactionId of request type FraudFields in favor of new property Order.customer.device.deviceFingerprintTransactionId.
    • Deprecated property hasForgottenPwd of request type FraudFields in favor of new property Order.customer.account.hasForgottenPassword.
    • Deprecated property hasPassword of request type FraudFields in favor of new property Order.customer.account.hasPassword.
    • Deprecated property isPreviousCustomer of request type FraudFields in favor of new property Order.customer.isPreviousCustomer.
    • Deprecated property shipComments of request type FraudFields in favor of new property Order.shipping.comments.
    • Deprecated property shipmentTrackingNumber of request type FraudFields in favor of new property Order.shipping.trackingNumber.
    • Deprecated property shippingDetails of request type FraudFields with no replacement.
    • Deprecated property website of request type FraudFields in favor of new property Merchant.websiteUrl.
    • Deprecated request type FraudFieldsShippingDetails with no replacement.
    • Deprecated property recurringPaymentSequenceIndicator of request type AbstractCardPaymentMethodSpecificInput in favor of new property recurring.recurringPaymentSequenceIndicator.
    • Deprecated property skipAuthentication of request type AbstractCardPaymentMethodSpecificInput in favor of new property threeDSecure.skipAuthentication of its child request types.
    • Deprecated property unscheduledCardOnFileIndicator of request type AbstractCardPaymentMethodSpecificInput in favor of new property unscheduledCardOnFileSequenceIndicator.
    • Deprecated property externalCardholderAuthenticationData of request type CardPaymentMethodSpecificInput in favor of new property threeDSecure.externalCardholderAuthenticationData.
    • Deprecated property returnUrl of request type CardPaymentMethodSpecificInput in favor of new property threeDSecure.redirectionData.returnUrl.
    • Deprecated property paymentProduct1503SpecificInput of request type CashPaymentMethodSpecificInput and request type CashPaymentProduct1503SpecificInput, since Boleto Bancario no longer uses redirects.
    • Deprecated property shippingAddress of request type Customer in favor of new property Order.shipping.address.
    • Deprecated property seller of request type Order in favor of new property Merchant.seller.
    • Deprecated property returnUrl of request type RedirectPaymentMethodSpecificInput in favor of new property redirectionData.returnUrl.
    • Deprecated property shippingAddress of request type CustomerRiskAssessment in favor of new property OrderRiskAssessment.shipping.address.

2.27.0

20 Mar 13:57
Compare
Choose a tag to compare
  • Added:
    • Added property shipping to request type Order.
    • Added call services.privacypolicy.

2.26.0

05 Mar 15:07
Compare
Choose a tag to compare
  • Added:
    • Added call disputes.cancel.