adyen-ios: [BUG] TWINT Apps cannot be opened when adding payment method (Fatal error/Crash)

Describe the bug When trying to register TWINT as a payment method, the application crashes with a fatal error:

Fatal error: NSArray element failed to match the Swift Array Element type
Expected TWAppConfiguration but found TWAppConfiguration

To Reproduce Steps to reproduce the behavior:

  1. Build app with Ayen TWINT Native integration
  2. Click on ‘Add payment method’
  3. Choose TWINT as payment method
  4. Application crashes with fatal error

Expected behavior The application does not crash and the selection which TWINT app should be opened is presented.

Screenshots n/a

Environment

  • Device: iPhone 16 Pro
  • iOS Version: iOS 18.1
  • SDK Version: 5.13.0
  • Adyen API Version: unknown
  • Package management system: SPM
  • Xcode version: 16.1 (16B40)
  • Mac OS type: M1 Max

Relevant source code File/Line: TwintSDKActionComponent.swift:105 Method: public func handle(_ action: TwintSDKAction) Line: guard let firstApp = installedApps.first else {

Additional context

  • Twint apps are configured with LSApplicationQueriesSchemes and integration is made as documented in AdyenTwint.md

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 17 (10 by maintainers)

Most upvoted comments

Hi @ast3150!

Taking over @atmamont here.

We’ve created a new branch (#1905) where the TwintSDK has been updated to version 8.0.2.

This update resolves the compatibility issue with iOS 18 caused by the deprecated openURL(_:) method.

However, due to limitations in Twint’s ability to provide a complete TEST environment, we have not been able to fully test the entire Twint payment flow. That said, we have successfully verified that the app-to-app switch functionality works with this update.

We encourage you to try out this branch in the meantime while we continue working on verifying the full flow. Once the changes are thoroughly tested, we’ll include them in an official release.

We apologize for any inconvenience caused by these third-party dependencies. If you encounter any issues, please let us know. Thank you for your understanding and cooperation!

Disclaimer: Be aware this is not part of an official release, so keep in mind there can potentially be issues with the update that’s why we encourage you to run test to make sure the whole Twint payment flow works as expected on iOS 18.