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

Initialize platform web pay button when added to DOM #1978

Conversation

cornwe19
Copy link
Contributor

  • Mimic payment element initialization

* Mimic payment element initialization

*
@cornwe19
Copy link
Contributor Author

@jamesblasco @jonasbark @remonh87 FYI on this one. We started using a new RUM framework and noticed a bunch of the following errors popping up when trying to use the platform pay button on mobile safari

IntegrationError: The selector you specified (#platform-pay-button) applies to no DOM elements
that are currently on the page. Make sure the element exists on the page before calling mount().

This fix addresses that issue. Similar problem to what's called out in #1925

@remonh87 remonh87 self-requested a review October 28, 2024 18:58
Copy link
Member

@remonh87 remonh87 left a comment

Choose a reason for hiding this comment

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

thank you I wanted to do this already for a long long time

@remonh87 remonh87 merged commit 80c0183 into flutter-stripe:main Oct 28, 2024
3 of 5 checks passed
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.

2 participants