#andrea-skuola-form

1 messages · Page 1 of 1 (latest)

golden tundra
#

Yes, but I need to create a form that let the user add a new payment method in case the customer need to change his card for future payments for example when card expire. So is not in the payment flow, but just add a new payment method

half geode
#

that uses the same components

golden tundra
#

ok can you leave this thread open for some hours so I can ask other questions during my integration if needed?

half geode
#

not really I'm afraid, it's not practical since we hand off between different people in my team during the day and we can't keep all the context.

#

you can ask anything you want in the main channel!

golden tundra
#

for customize the form and remove labels in it i tried:

#

const options = {
clientSecret: '{{ client_secret }}',
// Fully customizable with appearance API.
appearance: {
rules: {
'.Label': {
display: 'none'
}
}
},
};

    const elements = stripe.elements(options);
#

but this not working

half geode
#

let me try it...

#

yeah that's not possible, you can't remove the labels.

#

you can apply certain styles to them to change how they look(that's what the rule is for), but you can't remove them.

#

if you look at the console it tells you that

golden tundra
#

so what i need to do if i dont want to display labels?

#

even if i put theme:none they appear

half geode
golden tundra
#

because i don't want to

half geode
#

can you clarify what you mean by 'price' in this context?

golden tundra
#

sorry, the paymentIntent

#

because is not a paymentIntent what I want to do

half geode
#

wrong link I guess then

#

it's SetupIntents you'd use for saving cards without a payment