github Adyen/adyen-ios 4.0.0-beta.1

latest releases: 5.11.0, 5.10.0, 4.13.0...
3 years ago

Minimum API version

We recommend you use Checkout API v67.

Backwards compatibility with earlier API versions is not fully tested - we would appreciate your feedback :)

Breaking changes

  • Makes clientKey required on PaymentMethodsConfiguration.

  • Removed cancelHandler from the applePay component.

  • Drops support for iOS 10.0.

  • Made paymentData optional in RedirectAction, ActionComponentData and RedirectComponent.

  • RedirectComponent requires presentationDelegate to present its UI.

  • Adds a PaymentMethod object to DropInDelegate.didSubmit, so you can identify which payment method is being submitted.

  • Removed deprecated classes, functions, properties.

  • Renamed DropInActionComponent to AdyenActionComponent and moved it to the AdyenActions module.

  • Refactored the SDK into a new module structure:

  • AdyenComponents contains any payment component, for example QiwiWalletComponent, MBWayComponent, ApplePayComponent, and BLIKComponent.

  • AdyenCard contains any card payment related components, for example CardComponent, StoredCardComponent, and BCMCComponent.

  • AdyenActions contains all action components, for example AwaitComponent, VoucherComponent, and RedirectComponent.

  • AdyenEncryption contains the encryption helpers.

  • AdyenSwiftUI contains SwiftUI related integration helpers, for example ViewControllerPresenter, ViewModifier.

  • AdyenDropIn contains DropInComponent.

  • AdyenWeChatPay contains the WeChat Pay component.

New

  • The ThreeDS2Component supports the new 3D Secure flow from Checkout API v67. The old flow is still supported if you’re using an API version earlier than v67.
  • DokuComponent adds support for Indonesian bank transfers and cash payments at convenience stores through Doku Wallet, Doku Alfamart, and Doku Indomaret.
  • VoucherComponent handles actions for voucher payment flows, for example Doku Alfamart.
  • Adds support for stored payment details for BLIK.
  • You can configure button border color and width using ButtonStyle.

Improvements

  • Removed hard dependency on Checkout API versions pre 67.
  • Allow the title for DropIn to be centered.
  • Allow custom image for the cancel button.
  • Get Apple Pay supported networks from /paymentMethods response, and remove ApplePayConfiguration.excludedCardNetworks.
  • Improved accuracy for card brand detection.
  • Added CVC length validation for the stored cards component.
  • You can now use CardEncryptor to encrypt individual card fields, for example CVC or expiry month.
  • Refactored the Demo example apps (for UIKit and SwiftUI) to make it easier to follow.

Fixes

  • Fixed MBWayComponent to show Portugal and Spain in the phone prefix drop down list of phone extensions.
  • Fixed a bug where gift card payment methods had a missing logo.
  • Fixes localization warning when using Swift Package Manager.
  • Swish redirects are now fixed by adding the returnUrlQueryString option to RedirectDetails.

Note: Please refer to the migration guide for details about the breaking changes.

Don't miss a new adyen-ios release

NewReleases is sending notifications on new releases.