#reikoBooop
1 messages · Page 1 of 1 (latest)
Which TermsText you are referring to?
Sorry its been cut off but the button of Payment Element there is generic terms
Ah okie
Here is the option
you can try to specify card to never
on the call of var paymentElement = elements.create...
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
Yes! It will be the same for <PaymentElement>. It will be under options of the <PaymentElement>
Cool, thank you!
No problem! Happy to help 😄
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?
Payment Element supports Appearance for the styling. You may refer to the guide here to change the font size https://stripe.com/docs/elements/appearance-api
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
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>
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'
}
}}
/>
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
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
Can you share your development website, so that I can take a look?
Its only run locally and I prefer not to commit yet, can I send snippets of my code?
Sharing code will work, but sharing dev website will be more helpful as it includes css, html and js as a whole