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

ConnectPaymentDetails does not support visible prop #69

Closed
ljrahn opened this issue Jan 26, 2024 · 1 comment
Closed

ConnectPaymentDetails does not support visible prop #69

ljrahn opened this issue Jan 26, 2024 · 1 comment

Comments

@ljrahn
Copy link

ljrahn commented Jan 26, 2024

I see in your examples, and even in the documentation, you pass a visible prop, but the component doesn't accept it. Even if I try to wrap a piece of state around the component, toggle visibility using some onClick handler, then set the state to false using the onClose handler provided by the ConnectPaymentDetails component, the payment details popup doesn't disappear. ie. I don't see any way to close the component once its open.

image

@jorgea-stripe
Copy link
Contributor

We've since fixed this - the visible prop was removed from our beta a while ago, it is no longer needed! Simply stop rendering the component with a react conditional, like so:

{{visible ? <ConnectPaymentDetails ... /> : null }}

Or pass in a null payment.

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

No branches or pull requests

2 participants