#Mathieu-elements
1 messages · Page 1 of 1 (latest)
@pine coyote I think you're looking for https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields
some of the info is required though, or highly recommended. Like email is mandatory for SEPA, so if you disable our collection, then you need to pass it yourself or the payment will fail. And we ask for the country so that we can know if the customer should be asked for their postal code, which has an impact on fraud detection/decline rate.
ok i'm gonna check how to pass my data. Then will the stripe element still work if i hide these input with css (or appearance options maybe) ?
I'm asking this because on our workflow the user did already set them so it's kinda weird to see them again when setting up the payment method.
you'd just use the fields option! forget about CSS/appearance, that's not really relevant
makes total sense if the user already provided the info, that's completely fine and supported
you can pass it the information you have when calling confirmPayment if you've disabled it being collected in the Element itself