Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency com.adyen.checkout:cse to v5 #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Oct 19, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
com.adyen.checkout:cse 4.1.0 -> 5.9.0 age adoption passing confidence

Release Notes

Adyen/adyen-android (com.adyen.checkout:cse)

v5.9.0

Compare Source

New

  • 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.

    See the migration guide to learn about the changes you have to make to your integration to support Google Pay on this version.

  • Drop-in now shows a toolbar on more intermediary screens to let shoppers navigate back easily.

Changed

Deprecated

  • The styles and strings for the Cash App Pay loading indicator. Use the new styles and strings instead.
    Previous Now
    AdyenCheckout.CashAppPay.ProgressBar AdyenCheckout.ProcessingPaymentView.ProgressBar
    AdyenCheckout.CashAppPay.WaitingDescriptionTextView AdyenCheckout.ProcessingPaymentView.WaitingDescriptionTextView
    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 are working with the develop branch, we recommend switching to the main branch. The develop branch will be removed within the next few weeks.

v5.8.0

Compare Source

New

  • Payment method:
    • Pay by Bank US. Payment method type: paybybank_AIS_DD.

Fixed

  • For cards, the address lookup functionality no longer crashes if the shopper presses back when the postal code field is in focus.
  • For Drop-in, fixed an issue where the error dialog showed loading state in some edge cases.

Changed

v5.7.1

Compare Source

Fixed

  • For the Address Lookup functionality:
    • Address data is now correctly saved to PaymentComponentData.
    • Address fields that were edited manually no longer lose their state when starting Lookup mode.

v5.7.0

Compare Source

New

[!WARNING]
For Twint Components integrations, you must now use TwintComponent instead of InstantPaymentComponent.

  • For French meal vouchers, the following payment method types are now available:

    • Up. Payment method type: mealVoucher_FR_groupeup.
    • Natixis. Payment method type: mealVoucher_FR_natixis.
    • Sodexo. Payment method type: mealVoucher_FR_sodexo.
    • Learn to configure French meal vouchers.
  • For API-only integrations with encrypted card details, you can now use the following classes to validate corresponding fields:

    Class Description
    CardNumberValidator Validates the card number field.
    CardExpiryDateValidator Validates the expiry date field.
    CardSecurityCodeValidator Validates the security code field.
  • Support for the following locales:

    Locale Values
    Catalan ca-ES
    Icelandic is-IS
    Bulgarian bg-BG
    Estonian et-EE
    Latvian lv-LV
    Lithuanian lt-lT

Fixed

  • When parsing JSON objects with explicit null values, JSON deserialization no longer returns the coerced null string.

Improved

  • For UPI Intent, if the shopper selects the Continue button without selecting an UPI option, an error message now shows.
  • For Drop-in, in the navigation bar, the accessibility of the Back/Close button is improved.

Changed

Deprecated

  • The style for payment method list headers. Use the new style instead.

    Previous Now
    AdyenCheckout.TextAppearance.HeaderTitle AdyenCheckout.TextAppearance.HeaderLabel
  • The com.adyen.checkout.instant.ActionHandlingMethod method. Use the new method instead.

    Previous Now
    com.adyen.checkout.instant.ActionHandlingMethod com.adyen.checkout.components.core.ActionHandlingMethod

v5.6.0

Compare Source

New

  • For Google Pay on Advanced flow, onSubmit now returns threeDS2SdkVersion in the paymentMethod object that you must pass in your /payments request to correctly trigger the 3D Secure 2 flow.

Fixed

  • On Android API versions 21 to 25, the NoSuchMethodError no longer occurs during the 3D Secure 2 challenge flow.
  • When using R8 to shrink your code, CIRCULAR REFERENCE: com.android.tools.r8.utils.b: Missing class... errors no longer occur.

Changed

v5.5.0

Compare Source

New

  • Support for the UPI Intent flow, where the shopper can choose a UPI app to pay through. They are redirected to and complete the payment on the selected app.
  • The new iDEAL payment flow where the shopper is redirected to the iDEAL payment page to select their bank and authorize the payment.

Improved

  • Drop-in navigation:

    • Added the top navigation bar.
    • Disabled the dragging gesture that caused Drop-in to be dismissed.
    • When the shopper navigates back from an additional action screen (for example Await), Drop-in is dismissed.
  • Autofill support for the following:

    • For gift cards, the gift card number and PIN fields.
    • For UPI Virtual Payments, the address field.
    • For payment methods that use them, the address input fields.

Changed

Deprecated

We recommend that you remove the following from your integration.

  • For IdealComponent:
    • isConfirmationRequired()
    • submit()
  • For iDEAL configuration:
    • setViewType()
    • setHideIssuerLogos()
    • setSubmitButtonVisible()

v5.4.0

Compare Source

New

CheckoutConfiguration(
    environment = environment,
    clientKey = clientKey,
    ..
) {
    // Optionally pass the payment method type to only configure it for the specific payment method.
    instantPayment(PaymentMethodTypes.TWINT) {
        setActionHandlingMethod(ActionHandlingMethod.PREFER_WEB)
    }
}

Fixed

  • Fixed some memory leaks.
  • In case of a debug build, Drop-in no longer overrides the log level.
  • For cards, when a shopper does not select an address, the address lookup function now displays a validation error.
  • Actions no longer crash when your app uses obfuscation.
  • When handling a 3D Secure 2 challenge using Checkout API v66 or earlier, Drop-in no longer throws an error.
  • If the app process unexpectedly terminates when handling actions, the state is now restored and you can proceed with the payment flow.
  • For /sessions, fixed an issue where the setEnableRemovingStoredPaymentMethods flag in the Drop-in configuration was ignored.

Changed

v5.3.1

Compare Source

Fixed

  • For Drop-in and Components, when ?android:attr/textColor is not defined in your own theme, the Card Component no longer crashes.
  • The onAdditionalDetails event is now triggered only once. Previously, the event was triggered multiple times in some edge cases.
  • The build output no longer contains warnings about multiple substitutions specified in non-positional format in string resources.
  • For the Card Component, we fixed localization issues that occurred when using the Address Lookup functionality.
  • Overriding some of the XML styles without specifying a parent style no longer causes a build error.

Removed

  • You can no longer use functions like CheckoutConfiguration.getCardConfiguration() or CheckoutConfiguration.getDropInConfiguration() to get configurations from the CheckoutConfiguration object. When starting Drop-in or Components, pass the full CheckoutConfiguration object.

Changed

v5.3.0

Compare Source

New

  • A new way to create a configuration using DSL to be more declarative and concise:
CheckoutConfiguration(
    environment = environment,
    clientKey = clientKey,
    shopperLocale = shopperLocale,
    amount = amount,
) {
    dropIn {
        setEnableRemovingStoredPaymentMethods(true)
    }
    
    card {
        setHolderNameRequired(true)
        setShopperReference("...")
    }

    adyen3DS2 {
        setThreeDSRequestorAppURL("...")
    }
}

[!WARNING]
If you use the new configuration DSL, pass the CheckoutConfiguration object as it is when starting Drop-in or Components.

Do not use the functions to get configurations (such as CheckoutConfiguration.getDropInConfiguration() or CheckoutConfiguration.getCardConfiguration()). These functions will be removed in the following release.

  • For the Card Component, you can use the new Address Lookup functionality.
  • For voucher actions: when the url or downloadUrl is not included, the shopper has the option to select Save as image and save the voucher to the device's Downloads folder.
  • You can now set your own AdyenLogger instance with AdyenLogger.setLogger. This gives the ability to intercept logs and handle them in your own way.
  • Instructions to use the testing app in the repository. You can follow How to migrate section here.
  • Payment methods:
    • Multibanco. Payment method type: multibanco.
    • Pay Easy. Payment method type: econtext_atm.
    • Convenience Stores Japan. Payment method type: econtext_stores
    • Online Banking Japan. Payment method type: econtext_online.
    • Seven-Eleven: Payment method type: econtext_seven_eleven

Fixed

  • When building minifyEnabled without the kotlin-parcelize plugin in your project, the build should no longer crash.
  • When handling actions, you no longer get the IllegalArgumentException: Unsupported delegate type error that causes a crash.

Deprecated

  • When creating a configuration, the Builder constructors with a Context is deprecated. You can now omit the context parameter.
  • PermissionException. Handle permissions through ActionComponentCallback, SessionComponentCallback, or ComponentCallback callbacks instead.
  • The styles for vouchers have been changed:
    • Previous (v5.2.0 or earlier) Now (v5.3.0)
      AdyenCheckout.Voucher.Description.Bacs AdyenCheckout.Voucher.Simple.Description
      AdyenCheckout.Voucher.Description.Boleto AdyenCheckout.Voucher.Full.Description
      AdyenCheckout.Voucher.ExpirationDateLabel AdyenCheckout.Voucher.InformationFieldLabel
      AdyenCheckout.Voucher.ExpirationDate AdyenCheckout.Voucher.InformationFieldValue
      AdyenCheckout.Voucher.ButtonCopyCode AdyenCheckout.Voucher.Button.CopyCode
      AdyenCheckout.Voucher.ButtonDownloadPdf AdyenCheckout.Voucher.Button.DownloadPdf
  • Logger.LogLevel has been deprecated.
    • Previous (v5.2.0 or earlier) Now (v5.3.0)
      Logger.LogLevel AdyenLogLevel
      AdyenLogger.setLogLevel(logLevel: Int) AdyenLogger.setLogLevel(level: AdyenLogLevel)

Changed

  • When creating a configuration, the shopperLocale parameter is now optional.
    • Sessions flow: when you don't set it, the shopper locale is set to the value included in the /sessions request.
    • Advanced flow: when you don't set it, the shopper local is set to the primary user locale on the device.
  • For Drop-in, all actions now start in expanded mode.
  • For the Google Pay Component, you no longer need to manually import the 3ds2 module to handle transactions that require Native 3D Secure 2 challenge.
  • If you use DropInServiceResult.Error without specifying an error message, the default has changed from Error sending payment. Please try again. to An unknown error occurred.
  • For the Sessions flow:
    • When starting Drop-in (with DropIn.startPayment) or creating a Component (with YourComponent.PROVIDER.get), the configuration parameter is now optional.
    • When using CheckoutSessionProvider.createSession to create a CheckoutSession, you can pass only environment and clientKey instead of the whole configuration.
    • Removing stored payment methods is now handled internally. You no longer need to override the onRemoveStoredPaymentMethod function.
  • Dependency versions:
    Name Version
    Kotlin 1.9.22
    AndroidX Compose compiler 1.5.8
    AndroidX Compose Activity 1.8.2
    Material Design 1.11.0

v5.2.0

Compare Source

New

Improved

  • The integration now uses JSON Web Encryption (JWE) with RSA OAEP 256 and AES GCM 256 for encryption. You do not need to make any changes to your integration.

Fixed

  • For Drop-in, error dialogs no longer display user unfriendly messages when using the Sessions flow.
  • Overriding some of the XML styles without specifying a parent style no longer causes a build error.
  • The Await and QR Code action components no longer get stuck in a loading state after the payment is completed.

Changed

v5.1.0

Compare Source

New

Fixed

  • Fixed a bug where components would not be displayed in Jetpack Compose lazy lists.

Changed

v5.0.1

Compare Source

Fixed

  • @RestrictTo annotations no longer cause false errors with Android Studio and Lint.
  • Using the layout inspector or having view attribute inspection enabled in the developer options no longer causes a crash when viewing a payment method.
  • Implementing the :action module no longer gives a duplicate class error caused by a duplicate namespace.
  • For Drop-in, dismissing the gift card payment method no longer prevents further interaction.

Changed

v5.0.0

Compare Source

For guidance on integrating with this version, have a look at the integration guide.

If your integration uses Android v4.13.3 and earlier, and you're upgrading it to use v5.0.0, you can follow the migration guide.

These are the changes between the beta and stable release. For the full release notes that include all the changes from v4.13.3, see the release notes in our Docs.

Breaking changes

  • Amount.EMPTY is removed. Make sure you pass amounts with a valid value and currency.

Fixed

  • @RestrictTo annotations no longer cause false errors with Android Studio Hedgehog (Beta).
  • The Drop-in bottom sheet will no longer shift position on the screen when launching some flows like redirect and 3D Secure 2.

Changed

v4.13.6

Compare Source

Fixed

  • On Android API versions 21 to 25, the NoSuchMethodError no longer occurs during the 3D Secure 2 challenge flow.

Changed

  • Dependency versions:
    Name Version
    Adyen 3DS2 2.2.19

v4.13.5

Compare Source

Changed

  • Dependency versions:
    Name Version
    Adyen 3DS2 2.2.17

v4.13.4

Compare Source

Note

If you are using WeChat Pay please update to this version or migrate to 5.x.x to make sure WeChat Pay will work for all Android versions.

Fixed

  • WeChatPay now works correctly on Android 11 and later. This fixes a known issue from previous 4.x.x versions.

Changed

  • Dependency versions:
    Name Version
    WeChat Pay 6.8.0

v4.13.3

Compare Source

Fixed

  • Fixed Cash App payments being refused because of missing customerId during /payments/details call.

v4.13.2

Compare Source

Changed

  • Updated device information collection during the 3D Secure 2 device fingerprinting process.

v4.13.1

Compare Source

Fixed

  • For cards that require the shopper to input their address:
    • When internet connection is lost while loading, it no longer crashes. Instead an error is returned.
    • The Country dropdown menu to select no longer displays no options. Previously, an error sometimes caused the menu to have no options, so the transaction couldn't be submitted.

v4.13.0

Compare Source

New

  • For 3D Secure 2 transactions, when a challenge is unsuccessful because of error or timeout, the details are propagated in an object instead of returning an error. You can make a /payments/details request from your server to submit these details.

Changed

  • 3D Secure 2 SDK version: v2.2.15.
  • compileSdkVersion and targetSdkVersion: 33.

Fixed

  • For cards, when a detected card brand doesn't require a security code (CVC), the CVC field on the payment form no longer shows a validation error.
  • For dual-branded cards, if the shopper doesn't select a detected brand, the paymentMethod object no longer contains a brand when submitting the payment.
  • After the AwaitComponent handles an action, it no longer causes a crash when resuming your app from the background.

v4.12.1

Compare Source

Fixed

  • For 3D Secure 2, consecutive payments no longer fail. Previously, if the challenge failed, retrying the payment failed in some cases.

v4.12.0

Compare Source

New

  • Payment method: Cash App Pay.

Fixed

  • For Google Pay, serializing the shipping address parameters no longer causes an error.
  • For WeChat Pay on Android 11, an API restriction no longer causes an error.

Removed

  • For 3D Secure 2, the threeDSRequestorAppURL will not have a default value anymore. You can set it manually using:
Adyen3DS2Configuration.Builder(locale, environment, clientKey)
    .setThreeDSRequestorURL("https://{your app.com}/adyen3ds2")
    .build()

v4.11.0

Compare Source

New

  • For BLIK, one-click is now supported.
  • For 3D Secure 2, the threeDSRequestorAppURL can now be overridden from the configuration so that you can now use the Android App Link format (HTTP).
Adyen3DS2Configuration.Builder(locale, environment, clientKey)
    .setThreeDSRequestorURL("https://{your app.com}/adyen3ds2")
    .build()

⚠️Because of recent updates to the 3D Secure protocol, we strongly recommend that you provide the threeDSRequestorAppURL parameter as an Android App Link instead of custom link. This requires your app to handle the provided Android App Link. More details on how to handle Android App Link can be found on docs page.

Fixed

  • For BCMC, errors are now correctly highlighted.

v4.10.0

Compare Source

New

  • The CardComponentState.binValue now reports 8 digit bins in case of card numbers with 16 or more digits.
  • The new CardBrand class can be used to define unknown card brands. This can be used along with CardType.
  • When adding new card brands through CardConfiguration, you can now use the new CardBrandto add brands that are not already defined in CardType.
    For example:
CardConfiguration.Builder([SHOPPER_LOCALE], [ENVIRONMENT], [CLIENT_KEY])
.setSupportedCardTypes(CardBrand(txVariant = "[CARD_BRAND1]"), CardBrand(txVariant = "[CARD_BRAND2]"))
.build()

Changed

  • Upgraded the 3D Secure 2 SDK version to v2.2.11.
  • Upgraded compileSdkVersion and targetSdkVersion to 32.
  • Upgraded Kotlin version to 1.6.21.
  • Upgraded Kotlin coroutines version to 1.6.1.
  • Upgraded Fragment version to 1.5.5.
  • Upgraded AppCompat version to 1.5.1.

Fixed

  • For cards, you can now add unknown card types that aren't defined in CardType. Previously,
    CardType.UNKNOWN was not working correctly.
  • There is no longer a conflict with the 3D Secure 2 SDK that causes a runtime exception. This fixes the known issue in v4.9.0.

Deprecated

  • The CardType.UNKNOWN property. Use CardBrand(txVariant = "[CARD_BRAND]") instead.
  • The CardType.setTxVariant() method. No longer needed as it was used with CardType.UNKNOWN.

v4.9.1

Compare Source

//: # "Types of changes: `Ad


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/com.adyen.checkout-cse-5.x branch from f133ae5 to 3598a36 Compare November 11, 2023 11:23
@renovate renovate bot force-pushed the renovate/com.adyen.checkout-cse-5.x branch from 3598a36 to 5132917 Compare December 12, 2023 05:47
@renovate renovate bot force-pushed the renovate/com.adyen.checkout-cse-5.x branch from 5132917 to 70ecfc7 Compare January 30, 2024 23:50
@renovate renovate bot force-pushed the renovate/com.adyen.checkout-cse-5.x branch from 70ecfc7 to 0cabbf6 Compare March 13, 2024 05:20
@renovate renovate bot force-pushed the renovate/com.adyen.checkout-cse-5.x branch from 0cabbf6 to 0248b17 Compare April 13, 2024 08:53
@renovate renovate bot force-pushed the renovate/com.adyen.checkout-cse-5.x branch from 0248b17 to 9e7869d Compare May 31, 2024 20:50
@renovate renovate bot force-pushed the renovate/com.adyen.checkout-cse-5.x branch from 9e7869d to ceb8efa Compare June 22, 2024 23:31
@renovate renovate bot force-pushed the renovate/com.adyen.checkout-cse-5.x branch from ceb8efa to 05d76b4 Compare July 10, 2024 05:16
@renovate renovate bot force-pushed the renovate/com.adyen.checkout-cse-5.x branch from 05d76b4 to 6732417 Compare October 15, 2024 02:48
@renovate renovate bot force-pushed the renovate/com.adyen.checkout-cse-5.x branch from 6732417 to c108f1e Compare November 15, 2024 08:40
@renovate renovate bot force-pushed the renovate/com.adyen.checkout-cse-5.x branch from c108f1e to 2277b6b Compare December 7, 2024 11:33
@renovate renovate bot force-pushed the renovate/com.adyen.checkout-cse-5.x branch from 2277b6b to 81f24ce Compare January 20, 2025 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants