#l0rdandbooz_code
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/1305807562188394497
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
here's some additional context on my payment element
<PaymentElement onChange={handlePaymentChange}/>
and then the overall Element tag wrapping both of them
<Elements stripe={stripe} options={options}>
const options = {
clientSecret: setupIntent,
paymentMethodCreation: 'manual',
loader: "always",
// mode: "billing",
appearance: {
labels: "floating",
variables: {
fontFamily: 'IBM Plex Sans, sans-serif',
fontWeightNormal: '500',
borderRadius: '8px',
logoColor: 'dark',
tabIconSelectedColor: backgroundColor
},
rules: {
'.Tab--selected': {
color: backgroundColor,
},
},
}
};
What's not wroking?
the appearance on the address element isn't working
address element vs payment element
Is it about Tab--selected ?
it's incorrect heights, text is breaking, etc
Actually I just tried commenting out the custom styling and it looks like it switched the address element back to being how it would be by default
is there a good way for me to prevent certain stlyse from being applied to the address element vs the paymetn element?
No, the variables and rules are applied to both payment element and address element, there's no option to set different configuraions
makes sense. Thank you.
would I be able to separate the appearance off that elements initialization and pass separate objects to each individual stripe element?
You can. meaning you create two stripe elements, one for payment element and the other for address element
isn't that kind of a wreck as far as processing of payments and such goes?
seems like you should want to avoid that at all costs or am I wrong in my assumption
Can I suggest you to report the problem that you encountered in address element to support so that we can investigate further? Provide the relevant code, as well as a public URL to your integration.
Please click this link to open a support case with our Developer Support team, in order to help you more effectively.
Here's what to expect:
- ๐งโ๐ป You may need to log in to your Stripe account first.
- โ๏ธ You'll be asked to confirm that you want to create a support case.
- ๐ Your case will be routed to our Developer Support team and they will have a link to this Discord thread to preserve context on your question.
- ๐ฉ The team will review your question and reply to your support case as soon as possible.
Why can't you answer right now?
- โฑ๏ธ Sometimes answering technical/developer focused questions can take some time to reproduce problems or dig into edge cases or your specific account setup to get you the best possible answer, and it's not always possible to do this live in Discord.
the problem is passing the label float into my appearances object is breaking my address element. I want the label float behavior though.
Got it, open the support case so that we can follow up on it.