#andrea-skuola-form
1 messages · Page 1 of 1 (latest)
hi! You likely want to look into our Elements components
https://stripe.com/docs/payments/elements
https://stripe.com/docs/payments/payment-element
https://stripe.com/docs/payments/accept-card-payments?platform=web&ui=elements
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
that uses the same components
https://stripe.com/docs/payments/save-and-reuse?platform=web or
https://stripe.com/docs/payments/save-and-reuse-cards-only?platform=web for example, it's all just Elements.
ok can you leave this thread open for some hours so I can ask other questions during my integration if needed?
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!
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
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
so what i need to do if i dont want to display labels?
even if i put theme:none they appear
oh ok
you could use the less integrated lower-level components like the CardElement directly instead if you really need this level of custom integration with an existing page, totally supported (https://stripe.com/docs/payments/accept-card-payments?platform=web&ui=elements)
but should I set the price for this integration?
because i don't want to
can you clarify what you mean by 'price' in this context?
wrong link I guess then
I meant https://stripe.com/docs/payments/save-and-reuse-cards-only?platform=web (which I linked earlier)
it's SetupIntents you'd use for saving cards without a payment