Ingenico-ePayments / connect-sdk-client-swift

Ingenico Connect iOS Swift Client SDK
https://docs.connect.worldline-solutions.com/documentation/sdk/mobile/swift/
Other
5 stars 12 forks source link

[BUG] iOS - Credit card payment process crashes when trying to execute "creditCardPayment" #8

Closed matthias-94 closed 2 years ago

matthias-94 commented 2 years ago

"Fatal error: Unexpectedly found nil while unwrapping an Optional value IngenicoConnectKit/AssetManager.swift:162: Fatal error: Unexpectedly found nil while unwrapping an Optional value flutter: PaymentOption: {label: Cards, id: cards, logoUrl: templates/master/global/css/img/ppimages/group-card.png, displayOrder: 0, isAccount: false}

Tested on iOS 15.4.1, on iPhone X, iPhone 12 and iPhone 8. This error happens everytime.

Hotfix is placing a "return" at the very start of each of the two "updateImages"-functions in the AssetManager.swift. (I also commented out the whole code in both "updateImages"-functions just to be safe.

LeonStemerdink-Worldline commented 2 years ago

Hello Matthias, Thank you for reporting this issue. We are working on a fix and we will have a release ready as soon as possible.

LeonStemerdink-Worldline commented 2 years ago

This issue has been fixed in release 5.6.0.

rikvanthof commented 2 years ago

Closed