From 6d901a64b2d9bad6806cec094ef9b70190aa2043 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 29 Jul 2024 11:08:11 +0000 Subject: [PATCH] [ci] release main --- .changeset/sixty-phones-allow.md | 5 -- packages/e2e-playwright/package.json | 2 +- packages/e2e/package.json | 2 +- packages/lib/CHANGELOG.md | 95 +++++++++++++++------------- packages/lib/package.json | 2 +- packages/playground/package.json | 2 +- 6 files changed, 55 insertions(+), 53 deletions(-) delete mode 100644 .changeset/sixty-phones-allow.md diff --git a/.changeset/sixty-phones-allow.md b/.changeset/sixty-phones-allow.md deleted file mode 100644 index 2e70a44150..0000000000 --- a/.changeset/sixty-phones-allow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@adyen/adyen-web': patch ---- - -PayPal - Fixed bug where payment wasnt being finalized once the PayPal lightbox closes diff --git a/packages/e2e-playwright/package.json b/packages/e2e-playwright/package.json index 13f9c4bc80..979c9d14d4 100644 --- a/packages/e2e-playwright/package.json +++ b/packages/e2e-playwright/package.json @@ -26,6 +26,6 @@ "webpack-dev-server": "4.15.1" }, "dependencies": { - "@adyen/adyen-web": "6.0.0" + "@adyen/adyen-web": "6.0.1" } } diff --git a/packages/e2e/package.json b/packages/e2e/package.json index a70a03d418..4914f83bb1 100644 --- a/packages/e2e/package.json +++ b/packages/e2e/package.json @@ -41,6 +41,6 @@ "whatwg-fetch": "^3.6.2" }, "dependencies": { - "@adyen/adyen-web": "6.0.0" + "@adyen/adyen-web": "6.0.1" } } diff --git a/packages/lib/CHANGELOG.md b/packages/lib/CHANGELOG.md index 39ad1db086..921df4337f 100644 --- a/packages/lib/CHANGELOG.md +++ b/packages/lib/CHANGELOG.md @@ -1,73 +1,80 @@ # @adyen/adyen-web +## 6.0.1 + +### Patch Changes + +- PayPal - Fixed bug where payment wasnt being finalized once the PayPal lightbox closes ([#2771](https://github.com/Adyen/adyen-web/pull/2771)) + ## 6.0.0 ## Breaking Changes ### General -- Drop-in/Components is no longer supported on Internet Explorer 11. -- If you integrate with npm, we've changed how you import Drop-in/Components to reduce the bundle size. -- If you integrate with embedded scripts, we changed how we expose the AdyenCheckout and Drop-in/Components on the window object. -- We've changed how you create an instance of Drop-in or Component. -- For the `onSubmit()` event handler, you now need to resolve/reject an actions object to continue or halt the payment flow. -- For the `onAdditionalDetails()` event handler, you now need to resolve/reject an actions object to continue or halt the payment flow. -- The `onPaymentCompleted()` event is no longer triggered for failed payments, instead the `onPaymentFailed()` event is triggered. -- The `showPayButton` parameter now defaults to true. -- The `onValid()` event is removed. -- The `setStatusAutomatically` prop is no longer supported. If a payment is successful or if it fails, the component is kept in loading state and merchant must handle it accordingly. -- We've changed how you style Drop-in/Components to give you more fine-grained control by using custom CSS properties. Update your CSS styles accordingly. -- The `countryCode` property is now mandatory. It must be set directly in the `AdyenCheckout` configuration object, or in the /sessions request. -- The `showFormInstruction` property is no longer supported. -- When instantiating `AdyenCheckout`, you can no longer set the configuration property `installmentOptions`. It must be set in the Card Component configuration instead. -- You can no longer set the configuration property `paymentMethodsConfiguration` when initializing `AdyenCheckout. Instead, set it in the Drop-in configuration. -- TypeScript types are now imported directly from the root of the package, for example: ```import type { CardConfiguration } from '@adyen/adyen-web';``` +- Drop-in/Components is no longer supported on Internet Explorer 11. +- If you integrate with npm, we've changed how you import Drop-in/Components to reduce the bundle size. +- If you integrate with embedded scripts, we changed how we expose the AdyenCheckout and Drop-in/Components on the window object. +- We've changed how you create an instance of Drop-in or Component. +- For the `onSubmit()` event handler, you now need to resolve/reject an actions object to continue or halt the payment flow. +- For the `onAdditionalDetails()` event handler, you now need to resolve/reject an actions object to continue or halt the payment flow. +- The `onPaymentCompleted()` event is no longer triggered for failed payments, instead the `onPaymentFailed()` event is triggered. +- The `showPayButton` parameter now defaults to true. +- The `onValid()` event is removed. +- The `setStatusAutomatically` prop is no longer supported. If a payment is successful or if it fails, the component is kept in loading state and merchant must handle it accordingly. +- We've changed how you style Drop-in/Components to give you more fine-grained control by using custom CSS properties. Update your CSS styles accordingly. +- The `countryCode` property is now mandatory. It must be set directly in the `AdyenCheckout` configuration object, or in the /sessions request. +- The `showFormInstruction` property is no longer supported. +- When instantiating `AdyenCheckout`, you can no longer set the configuration property `installmentOptions`. It must be set in the Card Component configuration instead. +- You can no longer set the configuration property `paymentMethodsConfiguration` when initializing `AdyenCheckout. Instead, set it in the Drop-in configuration. +- TypeScript types are now imported directly from the root of the package, for example: `import type { CardConfiguration } from '@adyen/adyen-web';` ### Payment method specific #### Express payment methods -- For Google Pay express, the event handler `onPaymentDataChanged()` now works only when the Component configuration property `isExpress` is set to true. -- For Apple Pay express, the event handlers `onShippingContactSelected()` and `onShippingMethodSelected()` now work only when the Component configuration property `isExpress` is set to true. -- For Paypal Express, the `onShippingChange()` event handler is no longer supported. Migrate to the `onShippingAddressChange()` and `onShippingOptionsChange()` event handlers. -- The `onShopperDetails()` event for PayPal is renamed to `onAuthorized()` and it must be resolved or rejected to finalize the payment. -- For Google Pay, the `isAvailable()` method does not return a boolean flag anymore. Instead, the promise is resolved when the payment is available and rejected otherwise. +- For Google Pay express, the event handler `onPaymentDataChanged()` now works only when the Component configuration property `isExpress` is set to true. +- For Apple Pay express, the event handlers `onShippingContactSelected()` and `onShippingMethodSelected()` now work only when the Component configuration property `isExpress` is set to true. +- For Paypal Express, the `onShippingChange()` event handler is no longer supported. Migrate to the `onShippingAddressChange()` and `onShippingOptionsChange()` event handlers. +- The `onShopperDetails()` event for PayPal is renamed to `onAuthorized()` and it must be resolved or rejected to finalize the payment. +- For Google Pay, the `isAvailable()` method does not return a boolean flag anymore. Instead, the promise is resolved when the payment is available and rejected otherwise. #### Card payment methods -- The Card Component configuration property `showBrandsUnderCardNumber` is no longer supported. -- The `challengeWindowSize` configuration parameter can no longer be set inside a `threeDS2` object within `paymentMethodsConfiguration`. -- The Custom Card Component is renamed from `securedfields` to `CustomCard` and created as: `new CustomCard()` +- The Card Component configuration property `showBrandsUnderCardNumber` is no longer supported. +- The `challengeWindowSize` configuration parameter can no longer be set inside a `threeDS2` object within `paymentMethodsConfiguration`. +- The Custom Card Component is renamed from `securedfields` to `CustomCard` and created as: `new CustomCard()` #### Other payment methods -- For PayPal, the `onCancel()` event handler is no longer supported. To detect when the PayPal lightbox is closed, listen to the `onError()` event with error type `CANCEL`. -- For Klarna, the `token` property is replaced with the `authorization_token` from the `/payments/details` request. -- For Adyen Giving, you now need to integrate with the Giving Campaign Manager Component. -- We no longer support the payment method QiwiWallet. +- For PayPal, the `onCancel()` event handler is no longer supported. To detect when the PayPal lightbox is closed, listen to the `onError()` event with error type `CANCEL`. +- For Klarna, the `token` property is replaced with the `authorization_token` from the `/payments/details` request. +- For Adyen Giving, you now need to integrate with the Giving Campaign Manager Component. +- We no longer support the payment method QiwiWallet. #### Partial payments -- The `onOrderCreated()` event is renamed to `onOrderUpdated()`. +- The `onOrderCreated()` event is renamed to `onOrderUpdated()`. ## New -- `onPaymentMethodsRequest()` is a new event, which is triggered when a partial payment is made and the associated order isn't fully paid. Use the even handler to request payment methods for a new payment. -- `onPaymentFailed()` is a new event, which is triggered when a payment fails. Previously, this event was part of `onPaymentCompleted()`. -- You can now disable the final animation after a successful or failed payment in Drop-in, by setting `disableFinalAnimation` to true. -- Shoppers can now confirm the payment by pressing the Enter key. If the payment has a validation issue, an error is displayed in the Drop-in/Components interface. -- You can customize, or prevent, the Enter keypress behavior by implementing an `onEnterKeyPressed()` event handler on AdyenCheckout. -- We have added support for 6 more locales: Catalan (ca-ES), Icelandic (is-IS), Bulgarian (bg-BG), Estonian (et-EE), Latvian (lv-LV) and Lithuanian (lt-lT). -- We have added support for Apple Pay Order tracking. -- We have added support for tree shaking when integrating through npm. +- `onPaymentMethodsRequest()` is a new event, which is triggered when a partial payment is made and the associated order isn't fully paid. Use the even handler to request payment methods for a new payment. +- `onPaymentFailed()` is a new event, which is triggered when a payment fails. Previously, this event was part of `onPaymentCompleted()`. +- You can now disable the final animation after a successful or failed payment in Drop-in, by setting `disableFinalAnimation` to true. +- Shoppers can now confirm the payment by pressing the Enter key. If the payment has a validation issue, an error is displayed in the Drop-in/Components interface. +- You can customize, or prevent, the Enter keypress behavior by implementing an `onEnterKeyPressed()` event handler on AdyenCheckout. +- We have added support for 6 more locales: Catalan (ca-ES), Icelandic (is-IS), Bulgarian (bg-BG), Estonian (et-EE), Latvian (lv-LV) and Lithuanian (lt-lT). +- We have added support for Apple Pay Order tracking. +- We have added support for tree shaking when integrating through npm. ## Changed -- `onPaymentCompleted()` now works for both Sessions and Advanced flow. -- We have replaced input field placeholder texts with permanently visible contextual elements to enhance the accessibility and UX. You can still apply and customize placeholders. -- For Google Pay and Apple Pay, the `onAuthorized()` event is now triggered before the `onSubmit()` event. The `onAuthorized()` event must be resolved in order to proceed with the payment flow. -- We have improved AVS checks for GooglePay and ApplePay by adding the billing address to `state.data` if available during payment method authorization. -- Drop-in no longer uses radio buttons by default. -- The WeChatPay timer now defaults to 30 minutes. + +- `onPaymentCompleted()` now works for both Sessions and Advanced flow. +- We have replaced input field placeholder texts with permanently visible contextual elements to enhance the accessibility and UX. You can still apply and customize placeholders. +- For Google Pay and Apple Pay, the `onAuthorized()` event is now triggered before the `onSubmit()` event. The `onAuthorized()` event must be resolved in order to proceed with the payment flow. +- We have improved AVS checks for GooglePay and ApplePay by adding the billing address to `state.data` if available during payment method authorization. +- Drop-in no longer uses radio buttons by default. +- The WeChatPay timer now defaults to 30 minutes. ## Updating to this version @@ -79,6 +86,6 @@ To update from Drop-in/Components v5.x.x, follow the migration guide. ## Previous Changelogs -### 5.x.x +### 5.x.x See [5.x.x changelog](https://github.com/Adyen/adyen-web/blob/v5/packages/lib/CHANGELOG.md) diff --git a/packages/lib/package.json b/packages/lib/package.json index 8f6e42d09b..ebc8e857bd 100644 --- a/packages/lib/package.json +++ b/packages/lib/package.json @@ -1,6 +1,6 @@ { "name": "@adyen/adyen-web", - "version": "6.0.0", + "version": "6.0.1", "license": "MIT", "homepage": "https://docs.adyen.com/checkout", "type": "module", diff --git a/packages/playground/package.json b/packages/playground/package.json index 4c229da929..a52b9a99d2 100644 --- a/packages/playground/package.json +++ b/packages/playground/package.json @@ -41,6 +41,6 @@ "whatwg-fetch": "^3.6.2" }, "dependencies": { - "@adyen/adyen-web": "6.0.0" + "@adyen/adyen-web": "6.0.1" } }