#jesse677_api

1 messages ¡ Page 1 of 1 (latest)

sonic pierBOT
#

👋 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/1246185591180361769

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

midnight garnet
#

I think you might be looking for

const appearance = {
theme: 'stripe',
variables: {
colorPrimary: '#',
colorBackground: '#',
colorText: '#',
fontSizeBase: '#'
},
};

#

Can you try using fontSizeBase?

surreal grove
#

I saw this, but didn't know how to implement this in Next JS

#

I'll show you the code of my current implementation

midnight garnet
#

Specifically, you'd want to looks at '(Optional) Style the Payment Element' section

surreal grove
#

I see, it's because I'm currently using the embedded checkout component.

<EmbeddedCheckoutProvider stripe={stripe} options={options}>
  <EmbeddedCheckout />
</EmbeddedCheckoutProvider>
#

and I don't think you can past an appearance in the options, when you do it this way

midnight garnet
#

Ah sorry, yeah that appearance API is for our Elements

surreal grove
#

oh yeah sorry, I missed that