#gabornemeth_docs

1 messages ยท Page 1 of 1 (latest)

unborn quiverBOT
#

๐Ÿ‘‹ 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/1219219702912516148

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

craggy inletBOT
crisp slate
mighty root
#

Yep, I read through multiple times, but there's no mention about select element just dropdown, made a try with that without luck.

crisp slate
#

Yes you need to use the Dropdown class

#

Could you please share your code snipets and what you want to customize exactly ?

mighty root
#

So, this should work?

const appearance = {
   theme: 'stripe',
   rules: {
      '.DropdownItem': {
         padding: '10px 14px',
      },
   },
};
#
const {
   stripe,
   elements: [cardElement, idealBank],
} = useStripe({
   key: stripePublishableApiKey,
   elements: [
      { type: 'card', options: {style, hidePostalCode: true} },
      { type: 'idealBank', options: {style} },
   ],
   elementsOptions: {appearance}
});
mighty root
#

I'm using vue-use-stripe

#

nothing with it

crisp slate
#

This is not Stripe default UI style

#

Stripe doesn't provide an offical SDK for vueJs

mighty root
#

I'm creating custom elements with JS just using a wrapper to Vue which using Stripe.js underhood

mighty root
crisp slate
#

Yes, support for Vue3 is currently in development

#

I'm not sure how are you wrapping StripeJs in your app, but for sure the result your getting isn't Stripe default UI style

mighty root
crisp slate
#

Ah you are create a field just for Ideal

#

Is there any particular reason for not using Stripe Element ?

mighty root
#

Yep ๐Ÿ™‚ . Sorry for not mentioning that earlier.

#

To be honest I can't recall exactly what was it as it was a month ago or so and Stripe was totally new for me but I had some difficulties to insert it into my flow with all the customization I want to.

crisp slate
#

I see, I strongly recommend you to use Stripe Element, in order to have better flexibility and add more payment methods options with no-code

#

But you can customize your ideal Element using the style object

#

You can't use the appearance API with the ideal element.

mighty root
#

Ahh, I see. Then I'll check that (I've already checked it but not as many times as the appearance API so I might miss something) and maybe a little bit later I'll give another chance to the Stripe Element.
Thanks a mil and have a nice day! ๐Ÿ™‚