From e832a1bd8ee9eb28959b945029811ec76f76400d Mon Sep 17 00:00:00 2001 From: Oscar Spruit Date: Wed, 15 Jan 2025 13:55:52 +0100 Subject: [PATCH 1/2] Bump versions to 5.9.0 --- README.md | 10 +++++----- docs/payment-methods/GOOGLE_PAY.md | 4 ++-- example-app/build.gradle | 4 ++-- gradle/libs.versions.toml | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 52e08ca74e..d81b1dbf90 100644 --- a/README.md +++ b/README.md @@ -31,23 +31,23 @@ Import the corresponding module in your `build.gradle` file. For Drop-in: ```groovy -implementation "com.adyen.checkout:drop-in-compose:5.8.0" +implementation "com.adyen.checkout:drop-in-compose:5.9.0" ``` For the Credit Card component: ```groovy -implementation "com.adyen.checkout:card:5.8.0" -implementation "com.adyen.checkout:components-compose:5.8.0" +implementation "com.adyen.checkout:card:5.9.0" +implementation "com.adyen.checkout:components-compose:5.9.0" ``` ### Without Jetpack Compose For Drop-in: ```groovy -implementation "com.adyen.checkout:drop-in:5.8.0" +implementation "com.adyen.checkout:drop-in:5.9.0" ``` For the Credit Card component: ```groovy -implementation "com.adyen.checkout:card:5.8.0" +implementation "com.adyen.checkout:card:5.9.0" ``` The library is available on [Maven Central][mavenRepo]. diff --git a/docs/payment-methods/GOOGLE_PAY.md b/docs/payment-methods/GOOGLE_PAY.md index 1fc5b3fdf2..af91d24647 100644 --- a/docs/payment-methods/GOOGLE_PAY.md +++ b/docs/payment-methods/GOOGLE_PAY.md @@ -86,8 +86,8 @@ CheckoutConfiguration( | `setTotalPriceStatus` | Sets the status of the total price used. | | `setGooglePayButtonStyling` | Allows to configure the styling of the Google Pay button. | -## Migrating to 5.8.0+ -It is not necessary to migrate, but 5.8.0 introduced a simplified integration for Google Pay. This new integration among others gets rid of the deprecated `onActivityResult` and includes the Google Pay button. Follow the steps below to migrate from previous 5.x.x versions to 5.8.0: +## Migrating to 5.9.0+ +It is not necessary to migrate, but 5.9.0 introduced a simplified integration for Google Pay. This new integration among others gets rid of the deprecated `onActivityResult` and includes the Google Pay button. Follow the steps below to migrate from previous 5.x.x versions to 5.9.0: ### 1. Remove deprecated Activity Result code diff --git a/example-app/build.gradle b/example-app/build.gradle index c9e78aa51d..4b6c58adec 100644 --- a/example-app/build.gradle +++ b/example-app/build.gradle @@ -71,8 +71,8 @@ dependencies { // Checkout implementation project(':drop-in') implementation project(':components-compose') -// implementation "com.adyen.checkout:drop-in:5.8.0" -// implementation "com.adyen.checkout:components-compose:5.8.0" +// implementation "com.adyen.checkout:drop-in:5.9.0" +// implementation "com.adyen.checkout:components-compose:5.9.0" // Dependencies implementation libs.bundles.kotlin.coroutines diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index a6ca85b775..8e2de8ac51 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -7,7 +7,7 @@ min-sdk = "21" # App version, only used for example app, no need to increment version-code = "1" # The version-name format is "major.minor.patch(-(alpha|beta|rc)[0-9]{2}){0,1}" (e.g. 3.0.0, 3.1.1-alpha04 or 3.1.4-rc01 etc). -version-name = "5.8.0" +version-name = "5.9.0" # Build script android-gradle-plugin = "8.7.3" From d0e480d3a875429c4f1a09c05e9d32d0ae9cffb8 Mon Sep 17 00:00:00 2001 From: Oscar Spruit Date: Wed, 15 Jan 2025 14:10:15 +0100 Subject: [PATCH 2/2] Update release notes --- RELEASE_NOTES.md | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 730bcc27ab..5f3d517d41 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -9,24 +9,30 @@ [//]: # ( - Configurations public constructor are deprecated, please use each Configuration's builder to make a Configuration object) ## New -- Launch Google Pay with `submit()` to get rid of the deprecated activity result handling. -- For drop-in, show a toolbar on every intermediary screen, so shoppers can always easily navigate back. +- Simplified integration for Google Pay: + - The Component now includes the Google Pay button, and you no longer have to display the button with your own configuration. + - The Component now does the availability check on initialization. + - The deprecated `onActivityResult` is no longer needed. -## Fixed + See the [migration guide](docs/payment-methods/GOOGLE_PAY.md#migrating-to-590) to learn about the changes you have to make to your integration to support Google Pay on this version. -## Improved +- Drop-in now shows a toolbar on more intermediary screens to let shoppers navigate back easily. ## Changed -- For 3DS2 native flow, cancellations by shopper trigger `onAdditionalDetails()` event. You can make a `/payments/details` call to gain more insight into the transaction. - - If you already handle other 3DS2 errors by making a `/payments/details` call, then no changes are required and the specific handling for `Cancelled3DS2Exception` can be removed. - - If not yet implemented, you should update your systems to handle shopper cancellations using the new flow. +- For [native 3D Secure 2](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/?platform=Android&integration=Drop-in&version=latest), when a shopper cancels the payment during the payment flow, the `onAdditionalDetails()` event is now triggered. What this means for your integration depends on whether you already make a `/payments/details` call to handle 3D Secure 2 errors: + - If yes, you do not need to make any changes to your integration. You can remove the `Cancelled3DS2Exception` handler. + - If not, update your integration to make a `/payments/details` request to get the details of the canceled transaction. - Dependency versions: - | Name | Version | - |--------------------------------------------------------------------------------------------------------|-------------------------------| - | | | + | Name | Version | + |-----------------------------------------------------------------------------------------------------------------------------------------|----------------| + | [Android Gradle Plugin](https://developer.android.com/build/releases/past-releases/agp-8-7-0-release-notes#android-gradle-plugin-8.7.3) | **8.7.3** | + | [AndroidX Compose BoM](https://developer.android.com/develop/ui/compose/bom/bom-mapping) | **2024.12.01** | + | [AndroidX ConstraintLayout](https://developer.android.com/jetpack/androidx/releases/constraintlayout#constraintlayout-2.2.0) | **2.2.0** | + | [AndroidX Lifecycle](https://developer.android.com/jetpack/androidx/releases/lifecycle#2.8.7) | **2.8.7** | + | [AndroidX Lifecycle ViewModel Compose](https://developer.android.com/jetpack/androidx/releases/lifecycle#2.8.7) | **2.8.7** | + | [KotlinX Coroutines Play Services](https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.9.0) | **1.9.0** | ## Deprecated -- `Cancelled3DS2Exception` is now deprecated. Shopper cancellation of the 3DS2 native flow triggers the `onAdditionalDetails()` event, enabling a `/payments/details` call for transaction insights. - The styles and strings for the Cash App Pay loading indicator. Use the new styles and strings instead. | Previous | Now | |-----------------------------------------------------------|------------------------------------------------------------------| @@ -35,4 +41,4 @@ | `cash_app_pay_waiting_text` | `checkout_processing_payment` | ## Repository Maintenance -- We are changing the default branch of our SDK repository from `develop` to `main`. If you are using our SDK repository and working with the `develop` branch, we recommend switching to the `main` branch. The `develop` branch will be removed within the next few weeks. +- We are changing the default branch of our SDK repository from `develop` to `main`. If you are using our SDK repository and are working with the `develop` branch, we recommend switching to the `main` branch. The `develop` branch will be removed within the next few weeks.