-
Notifications
You must be signed in to change notification settings - Fork 8
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
payment-details embedded component pops empty, disappear, and re-pops before displaying info about payment #148
Comments
Stripe talks about this popping behaviour here, but couldn't find a way to actually fix it. |
Could you attach a video of this behavior? |
Screen.Recording.2024-08-15.at.15.39.09.mov |
This isn't an known issue and seems like a bug, could you provide a small github repo that reproduces this issue? Thanks! |
It could be related to the state updated asynchronously (e.g., after an API call). In that case, the component might render before the state is populated, causing it to briefly appear empty and re-render when it is updated. |
Hey everyone, I'm getting the same issue. I checked that there're no async state updates. @dvadri have you found a solution? |
Hi guys, I haven't found the solution yet. I'm using Laravel v11: This is the html of the page from the video:
This is the payment.js:
This is the app.js (that Laravel uses):
---x--- Another problem I just spotted... I also think the payment-details embedded component isn't showing all the disputes related to a single charge. I tested using the 4000000404000079 (multiple dispute card from Stripe) and only one of the disputes appeared, while in the regular stripe dashboard for the conected account (when accessing from the platform account) both disputes appeared. |
@dvadri Looking at this code - can you console log the code in your click listener and verify it is running only once? I believe the video you shared indicates that 2 separate payment details components are mounted onto the page at the same time (one after another) |
@dvadri And regarding multiple disputes, we do not currently support multiple disputes management in embedded, but that shouldn't be causing your issue |
When using the payment-details embedded component (alone, without the payments embedded component)... no matter if called from a button "View payment details" or if executed on page load... it always pops empty, disappear, and re-pops before displaying info about payment. How to fix it?
The text was updated successfully, but these errors were encountered: