github Adyen/adyen-android 5.0.0-alpha01

latest releases: 5.6.0, 4.13.6, 5.5.0...
16 months ago

Breaking Changes

Removed

  • requiresConfiguration() in action Component providers. For all Components, configuration is optional.
  • CardConfiguration.Builder.setAddressVisibility(). Use CardConfiguration.Builder.setAddressConfiguration() instead.
  • Environment.LIVE. Use the same live environment as your backend instead. You can find that value in your Customer Area.
  • saveState() and restoreState() in action components. The component will automatically handle the state now.
  • DropInServiceResult.Action constructor from JSON string. Use the constructor with the Action and Action.SERIALIZER instead.

New

  • Sessions flow using the single /sessions request is now supported.
  • For Components:
    • Payment method Components now handle actions. You no longer need a payment Component and action Components for a payment method with additional actions.
    • The GenericActionComponent that can handle all action types. You no longer need to implement separate Components for redirects and 3D Secure 2 authentication, for example.
    • A Pay button that you can configure to be hidden.
    • The submit() method that can be used to add your own pay/submit button.
    • You can now add amount to the configuration to show it on the pay/submit button.
    • The onSubmit() event that gets emitted when the shopper pays.
  • When the shopper is redirected back from an external app or website, an intermediate view with a loading spinner and a Cancel button now shows. The shopper can select to cancel the redirect back to your app.
  • Localisation for the Portuguese (Portugal) language.
  • Payment methods:
  • Express payment methods like PayPal and Klarna. These payment methods don't require the shopper to enter their payment details before they pay. Use InstantPaymentComponent.

Changed

  • For cards:
    • The supported brand logo icons now show below the card number input field.
    • US Debit brand logo icons no longer show.
  • For Drop-in, values set in DropInConfiguration now override conflicting configurations for individual payment methods.
  • For Google Pay, you can now set GooglePayConfiguration.merchantAccount to override the gatewayMerchantId configured in your Customer Area. For Advanced flow, this is the paymentMethod.configuration.gatewayMerchantId parameter in the /paymentMethods response.
  • For Components, when a payment method doesn't require input from the shopper, the Component that launches automatically returns the onSubmit() callback. For example, for the stored cards without a CVC input field.
  • For gift cards and partial payments, you must now implement onBalanceCheck() and onRequestOrder() to launch payment methods with an order and make partial payments.

Improved

  • You can now instantiate more than one instance of the same Component within the same lifecycle. Passing the key parameter to the Component provider get() method. For example, you can show cards and stored cards on the same screen.
  • For Components, you no longer need to handle duplicate events such as submit callbacks or errors with because they're only emitted once. Flows are now used instead of LiveData.
  • More UI theme customization options like dark mode.
  • The expiry date input field now has more specific validation rules and error messages.
  • The email address input field now has more specific validation rules.

Fixed

  • The redirect flow on Android 11.

Don't miss a new adyen-android release

NewReleases is sending notifications on new releases.