New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement PaymentSheet.resetCustomer
#5340
Conversation
Diffuse output:
APK
DEX
ARSC
|
PaymentSheet.reset
hmm, what about the preferences that are persisted to disk and resetting singletons? |
Resetting DefaultPrefsRepository too. |
I think there are a couple of other classes used by PaymentSheet that also write to preferences which will also be cleared:
Just making sure we intend to clear all of those by clearing the DefaultPrefsRepository |
Clearing |
paymentsheet/src/main/java/com/stripe/android/paymentsheet/PaymentSheet.kt
Outdated
Show resolved
Hide resolved
This reverts commit a2cc603.
PaymentSheet.reset
PaymentSheet.resetCustomer
Summary
Add a static
resetCustomer
method to PaymentSheet, that clears any persisted authentication state.Doc
Motivation
Clear persisted authentication state.
Testing