#solveig_error
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1281156631882891296
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Could not get payment element is not an error message from Stripe. This is likely your own error message and we are not able to provide any insight. Without reproducing the issue, we have no starting point to further debug the issue.
I'd recommend adding more logs to include the error message from Stripe, as well as the code that triggered this error, so that we can look into further
hi, thank you for your asnwer. Yes this is our own error message, maybe I didn''t prhase the question well. But we are trying to figure out why the card element is undefined for some users (it is not a lot of users) but for some they are unable to see the card element and that is a bit worrying
and I think there is no error from stripe in those cases, the card element is just not found/undefined
sorry, paymentElement not cardElement
I'd like to clarify here that Payment Element and Card Element are two different integration types within Stripe. In you code which you fetch the element in elements.getElement(PaymentElement), it's a Payment Element, not Card Element. Using the correct integration type will allow us to understand the issue faster.
Back to your original ask why the customer is not able to see Payment Element, there can be many reasons such as Payment Intent creation failures that results in client secret isn't returned to render Payment Element.
I'd recommend checking whether there is any error in Payment Intent creation and log any error at your client side
ah yes sorry for being unclear and thank you for your patience!