#reikoBooop

1 messages · Page 1 of 1 (latest)

tawny siloBOT
prime orbit
#

Which TermsText you are referring to?

haughty cave
#

Sorry its been cut off but the button of Payment Element there is generic terms

prime orbit
#

Ah okie

#

Here is the option

#

you can try to specify card to never

#

on the call of var paymentElement = elements.create...

tawny siloBOT
haughty cave
#

ah perfect! Thank you

#

would it be same for <PaymentElement /> tag ? or you have different document for it I am using this component for React js

agile badger
#

Yes! It will be the same for <PaymentElement>. It will be under options of the <PaymentElement>

haughty cave
#

Cool, thank you!

agile badger
#

No problem! Happy to help 😄

haughty cave
#

Hi I want to change more styling on PaymentElement but seems like Options type is quite limited on taking styling property

#

Is there any other way to make the styling like change the font size or do I need to overwrite with css?

agile badger
haughty cave
#

Also somehow bottom of Payment element been cut off..

<PaymentElement
options={{
terms: {
card: 'never'
}
}}
/>

#

I checked overflow property but even with that property, the country part is cut off

#

Also 'Appearance' is not in the type of payment element... unless Im missing

agile badger
#

It's likely that your length you set for Payment Element is too small that results in Payment Element being cut. Can you increase the length of the frame outside of Payment Element

#

Appearance API is on <Elements>, not <PaymentElement>

haughty cave
#

I added height of 440px to the PaymentElement like below code but does not make solve the issue.. till bottom part is been cut off
<PaymentElement
className="h-[440px]"
options={{
terms: {
card: 'never'
}
}}
/>

agile badger
#

I'm not referring to the height of the Payment Element, but the component outside of the Payment Element

#

It's likely that the component outside of the Payment Element limits the height

haughty cave
#

outside of the Payment Element has height of 100% and when I change the height of parental div of the component it did not change anything

agile badger
#

Can you share your development website, so that I can take a look?

haughty cave
#

Its only run locally and I prefer not to commit yet, can I send snippets of my code?

agile badger
#

Sharing code will work, but sharing dev website will be more helpful as it includes css, html and js as a whole