Skip to content
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

Fix StripeIntent status check #4115

Merged
merged 6 commits into from
Aug 19, 2021
Merged

Fix StripeIntent status check #4115

merged 6 commits into from
Aug 19, 2021

Conversation

brnunes-stripe
Copy link
Contributor

Summary

Handle StripeIntent status check only in StripeIntentValidator, log the error.

Motivation

RUN_MOBILESDK-365
When clientSecret corresponds to a StripeIntent that was already confirmed, the check in PaymentSheetViewModel would result in getting stuck loading since the views were not ready to handle the ViewState changes.

Testing

  • Added tests
  • Modified tests
  • Manually verified

@github-actions
Copy link
Contributor

Diffuse output:

# Conflicts:
#	payments-core/src/main/java/com/stripe/android/paymentsheet/PaymentSheetViewModel.kt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants