Releases: Worldline-Global-Collect/connect-sdk-client-js
Releases · Worldline-Global-Collect/connect-sdk-client-js
6.0.4
6.0.3
Changed:
- Add proper stack traces for all custom error classes
Fixed:
- Prevent throwing a runtime error for check
ApplePaySession.canMakePayments()
when does not satisfies the browser requirements of Apple Pay - Previously the
Session.prototype.createApplePayPayment()
was never resolved/rejected when the user cancelled the payment. It now throws a custom errorApplePayError
with statuscancelled
. - Removed dependency vulnerabilities
6.0.2
Fix:
- Fixed an issue where Google Pay would be incorrectly reported as not available.
- Fixed an issue with Apple Pay domain validation.
6.0.1
Fix:
This release fixes an issue with 3DS payments, where the JavaEnabled property was no longer provided. The property has been added again.
6.0.0
Fixed
- !BREAKING! A number of properties have been made optional. This fixes a potential issue with processing payments for Google Pay and Apple Pay. If you are using the SDK in combination with Google Pay or Apple Pay, please upgrade to this version!
Properties that have been made optional:
PaymentProductField.dataRestrictions
Tooltip.image
PaymentProductJSON.PaymentProductFieldJSON
PaymentProductFieldJSON.PaymentProductFieldDataRestrictionsJSON
PaymentProductFieldTooltipJSON.image
- The SDK now exports the full API domain model as types.
5.0.0
This SDK is a rebranded and updated version of the SDK that was previously published under the Ingenico name. Next to renaming to Worldline, most deprecations have been removed. Please have a look at the release notes below to see what has changed and use the migration guide to upgrade from the previous version in a few easy steps. Previous versions and release notes of this SDK can be found here.
An overview of the changes:
Added:
- The method
getPrivacyPolicy
was added to theSession
instance to retrieve the policy for apaymentProductId
and/orlocale
. Providing nopaymentProductId
will retrieve all available payment product policies.
Removed:
- The method
getCustomerDetails
is removed from theSession
instance since it is no longer supported by the payment engine.- The methods
transformPaymentProductJSON
andtransformPaymentProductGroupJSON
are removed from theSession
instance, which are no longer used anymore.
- The methods
Changed:
- Polyfilled promises are replaced by native promises, see migration guide
- Use https://developer.mozilla.org/en-US/docs/Web/API/fetch instead of XMLHttpRequest
- Improve error handling (always throw an instance of Error), see migration guide
- Improved refer entity by ID, see migration guide
- Library exported as UMD, ES modules and CommonJS, see migration guide how to import into your application
- Better TypeScript support
- Smaller bundle size; build supports tree-shaking
- When using AMD; does no longer support loading modules from Session object
- Internal rewrite to modern standards using native browser API (
Map
,Set
etc). - Remove critical vulnerabilities from external dependencies
- Update typedoc generation