stripe / stripe-terminal-ios

Stripe Terminal iOS SDK
https://stripe.com/docs/terminal/sdk/ios
Other
104 stars 65 forks source link

`collectPaymentMethod` crashes randomly #308

Closed r2-pro closed 2 months ago

r2-pro commented 5 months ago

Summary

In May, we have started to observe that collectPaymentMethod is producing crashes. Screenshot 2024-06-07 at 11 52 41

Code to reproduce

Call - (nullable SCPCancelable *)collectPaymentMethod:(SCPPaymentIntent *)paymentIntent completion:(SCPPaymentIntentCompletionBlock)completion NS_SWIFT_NAME(collectPaymentMethod(_:completion:));

The issue is non-deterministic.

iOS version

Mostly 17.5.1 and 17.4.1 but there are also occurences on 17.3.1

Installation method

via Swift Package Manager

SDK version

3.5.0

Other information

We haven't been changing the card reader integration lately. I wonder if it may be related to card reader firmware update? We are using only M2 readers.

Any hints how we can get more info for the issue?

maxa-stripe commented 5 months ago

@r2-pro Unfortunately I haven't been able to reproduce this crash. Could you share more information on your integration: How do you use collectPaymentMethod? What is in your SCPCollectConfiguration? Do you happen to have a payment intent ID and/or reader serial number that was affected by this crash?

r2-pro commented 5 months ago

We've added more logging to gather data, but for now we stopped receiving crash reports for the issue. Isn't that related with firmware update schedule? Screenshot 2024-06-25 at 11 50 31

maxa-stripe commented 4 months ago

No, it does not appear that the chart above correlates with recently released software updates. Do you have any further logging to offer @r2-pro? Unfortunately I still haven't been able to reproduce this issue.