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

Disable embedded UI during confirmation #4516

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

porter-stripe
Copy link
Collaborator

Summary

  • During confirmation we should disable the user interaction on the embedded view until we have a result
  • Re-enable interaction for failed or canceled cases

Motivation

https://stripe.slack.com/archives/C058XM768SE/p1738259151501839

Testing

  • Manual

Changelog

N/A (private beta)

@@ -357,7 +358,8 @@ extension EmbeddedPaymentElement {
return (.failed(error: error), nil)
}
}


embeddedPaymentMethodsView.isUserInteractionEnabled = false
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm thinking we only need to disable interaction after we have waited for the previous update (if any) since that should handle UI enable/disable for the update call.

@porter-stripe porter-stripe marked this pull request as ready for review January 30, 2025 19:11
@porter-stripe porter-stripe requested review from a team as code owners January 30, 2025 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants