#learner-elements

1 messages ยท Page 1 of 1 (latest)

shadow musk
hasty mist
#

Thanks. Can you please share a @stripe/react-stripe-js example as well?

shadow musk
#

I can't actually, I don't have one.

#

if there's some specific problem you're running into when trying to build this yourself let me know and I can try to unblock you!

hasty mist
#

I am using @stripe/react-stripe-js which uses useElements hook to create elements

#

and it didn't worked. Please suggest what am I doing wrong here

shadow musk
#

can you share the full code of your component?

#

for example are you actually passing the font to the style option of the CardElement?

#

the code snippet you posted above just loads the font, it doesn't use it.(that's what line 16 in the JSfiddle is for)

hasty mist
#

Full code

shadow musk
#

that seems like it should work I think. Any errors in your browser console?

hasty mist
#

quite a few. I believe these existing before I made change to load custom font and are not new

shadow musk
#

ok well the q.stripe.com ones are normal, they just happen if you have an ad-blocker running

hasty mist
#

yep, I have an adblocker

shadow musk
#

still looking

hasty mist
#

FYI - I am using NextJS

hasty mist
#

@shadow musk sorry just checking again if there are any suggestions

shadow musk
#

unfortunately I'm a little under-resourced so I'm not able to dig much more into this ๐Ÿ˜ฆ

hasty mist
#

by any chance would someone else in the support team will have bandwidth to help out?

shadow musk
#

right now I am the support team unfortunately until US hours! But let me tag someone when they come online.

hasty mist
#

Thank you @shadow musk. On a separate note, are there any support openings at Stripe?

shadow musk
#

@gaunt arrow can you help out?

gaunt arrow
#

๐Ÿ‘‹

#

catching up, just a sec

#

ok, in my colleagues codesandox demo above it looks like the styling is being applied but the font isnt available, so trying to address that

hasty mist
#

Thanks @gaunt arrow Please let me know as you are done

gaunt arrow
#

still trying to figure out how the options are supported here via useElements, but pretty much out of ideas

#

but it's behaving as i'd expect

hasty mist
#

@gaunt arrow sorry still couldn't make it work

gaunt arrow
#

Me neither, I'm going to have to ask the team internally about this :/

#

oh wow, my message above should have said it's not behaving as i expect, sorry about that ๐Ÿ˜ฆ

gaunt arrow
#

Can you please write in to support@stripe.com about this and mention my username? I'd like to investigate this further and be able to get back to you.