#hanis03_code
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1247969686751019150
📝 Have more to share? Add details, code, screenshots, videos, etc. below.
the other customization methods work for us
What does this mean? What other customization methods? You're trying to get a dark theme via multiple different methods?
This was not meant to be a method for styling, but modifications such as: type: 'accordion', or type: 'tabs',
I don't understand. Are you just trying to show it via a dark theme? Or are you trying to do something more complicated?
We only trying dark theme but many thing we recieve from ChatGPT
Have you tried passing in an appearance object?
const appearance = { theme: 'night', }; const options = { /* options */ }; const elements = stripe.elements({ clientSecret, appearance }); const paymentElement = elements.create('payment', options); paymentElement.mount('#payment-element');
The options object is different. It has these: https://docs.stripe.com/payments/payment-element#options
Okay, thank you very much for support! That´s all.