#nimheru_docs
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/1472916942384926864
π Have more to share? Add more details, code, screenshots, videos, etc. below.
Init code:
elements = stripe.elements({
clientSecret: response.client_secret,
fonts: [
{
cssSrc: 'https://fonts.googleapis.com/css?family=Poppins:400',
}
],
appearance: {
theme: 'flat',
labels: 'floating',
variables: {
borderRadius: '0.25rem',
fontFamily: 'Poppins, sans-serif',
fontLineHeight: '1.4',
fontSizeBase: '16px',
fontSmooth: 'always',
colorIconMenu: '#eb601a',
iconColor: '#eb601a',
tabIconColor: '#eb601a',
tabIconSelectedColor: '#eb601a',
},
rules: {
'.Input': {
backgroundColor: '#fefefe',
border: '1px solid #555555',
padding: '0.7rem 0.5rem',
},
'.Input::placeholder': {
color: '#fefefe',
},
'.TabIcon--selected': {
fill: '#eb601a',
},
'.AccordionItem--selected': {
color: '#444444',
},
}
}
});
π Hi there! Let me take a look
Hi, thank you! It looks like anything within the p-LinkBrandedRoot div ignores or overrides most of the settings
Yeah, I see. So you're missing the border colour, radius, and custom font here?
Yeah pretty much!
I couldn't actually find any styling/appearance api docs specific to Link, do they exist?
Yeah, I'm not seeing any specific mention of Link in the Appearance-related docs either
The styling does seem to apply when using the Link Authentication Element
But you're just using the Payment Element here? Or what does your integration look like?
Yes this is the Payment Element as we already collect emails in a previous step and pass them in to the payment element's options
var paymentElementOptions = {
layout: {
type: 'accordion',
defaultCollapsed: true,
radios: true,
spacedAccordionItems: true
},
};
//after a xhr call
paymentElementOptions.defaultValues = response.default_values;
paymentElement = elements.create('payment', paymentElementOptions);
Yup, I can reproduce that here as well here
We'll need to take this offline, so I can check in with the Elements team and get back to you, if that's ok?
certainly thanks
Otherwise you can try using the Link Authentication Element in addition to the Payment Element, if that might be suitable: https://docs.stripe.com/payments/elements/link-authentication-element
I'll send you a DM to open a support case, and we will be able to respond to you there
Hello @north dew, we have sent you a direct message, please check it at https://discord.com/channels/@me/1472922615223025729
- πThe message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
We could consider it but would prefer to just use the payment element (as we already capture email details) if we can get this working
The link in the DM seems to just open the AI assistant on your support page but nothing is prefilled, is that correct?
Hm, there should be an option to open a case in the assistant. If not, you can ask the assistant
It seems to have knowledge that I had come from Discord so it looks like it worked thanks
Ah yes, I see it
Thanks! I'll get back to you there via email once I've got more updates
Ok thank you very much
You're welcome!