Skip to content

Commit

Permalink
Merge pull request #1962 from Adyen/release/5.9.0
Browse files Browse the repository at this point in the history
Prepare release 5.9.0
  • Loading branch information
OscarSpruit authored Jan 16, 2025
2 parents 7d22932 + d0e480d commit 5bf39ff
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 22 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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].
Expand Down
30 changes: 18 additions & 12 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
|-----------------------------------------------------------|------------------------------------------------------------------|
Expand All @@ -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.
4 changes: 2 additions & 2 deletions docs/payment-methods/GOOGLE_PAY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions example-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5bf39ff

Please sign in to comment.