#shifa_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/1265259144219332628
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi! not sure what you mean, can you elaborate/show screenshots?
Yes, My payment element field is not showing tab or accordon with available payment method name when there is only one payment method is available.
I think that's expected, if there's only one payment method there is no tab selector. Seeing a screenshot might help.
See here, only EPS is available. But my users cant understand which payment method is that. because it doesnt have a name.
hello?
hello
How to prevent this?
I don't think you can. It's unusual to use PaymentElement with only one PaymentMethod in any case, usually you'd also have Card included. Good feedback though, I'll raise it internally
please do that. It is not unusual, it can happen when some currency or country restriction prevent some payment method from showing.
Anyway, thank you for your quick replay. I hope it will resolve in future updates.
FWIW you can listen to https://docs.stripe.com/js/element/events/on_ready#element_on_ready-handler-availablePaymentMethods and build your own UI.
like you can know that the only method we are showing is EPS and toggle on some <div> in your page that says it's EPS.