Closed rscherf closed 11 months ago
Hi @rscherf, it looks like you're using mismatched versions of the SDKs here:
implementation "com.stripe:stripeterminal-core:3.2.0"
implementation "com.stripe:stripeterminal-handoffclient:3.2.0"
implementation "com.stripe:stripeterminal-localmobile:3.0.0"
The stripeterminal-localmobile
dependency needs to be updated to 3.2.0
as well.
Hey @chr-stripe, so this is a known issue and expected error? Just want to make sure I understand correctly.
This is a requirement laid out in our README:
The
stripeterminal-localmobile
SDK version must match the version you're using for other stripeterminal libraries.
The Terminal SDK libraries all need to use the same version so that they agree on which data models can be passed back and forth. It's likely that a new value was introduced in 3.2.0
that stripeterminal-core
is aware of and stripeterminal-localmobile
is not, which is causing the NoWhenBranchMatchedException to be raised.
Thank you! I'll close but not delete in case someone else Googles this.
Summary
A subset of users across many devices have started receiving the following error. This happens after Tap to Pay has been enabled and the user attempts to create the PaymentIntent.
Code to reproduce
Android version
Android 13.0
SDK version
Other information
I was able to find the root cause from USB debugging.