Closed jacopofranza closed 3 years ago
Hi @jacopofranza, thanks for finding the issue and opening this PR.
I noticed that when the payment bottomsheet is dismissed transactionCode is nil, so we can simply check if it's nil and return immediately. In this way we can avoid all the checks that you added on the dart side and keep the code cleaner.
So I'm closing this PR and fixing the issue with another commit.
Simone
Still unresolved. Any updates?
sumup/SwiftSumupPlugin.swift:87: Fatal error: Unexpectedly found nil while unwrapping an Optional value
A "Unexpectedly found nil while unwrapping an Optional value" occur on ex line 79 ("let cardType = resultCard!["type"]") when closing the bottom page during the selection between terminal and link. The updated code just check for a nil on resultCard before try to unwrap it. fix #13