#Jason889
1 messages · Page 1 of 1 (latest)
Hi there. You can specify which billing fields to collect when creating the payment element: https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails
So I have to pass the customer billing address in the confirmation of the payment_intent ?
That's correct
but in that case what will be the best practices ? Let the checkout with the country selector without providing the billing address in the customer object or do like this ?
Up to you. Another thing you could do is just prefill that data on the Payment Element: https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-defaultValues-billingDetails
it can be pre-filled with the information saved in the customer object ?
Yeah you can prefill with whatever you like using the defaultValues
ok perfect thanks! What is the interest of saving the billing address in the customer object ? Because in the checkout they asked just the country, and also maybe the postal code.
So the address on the customer is just their address. You technically don't need to set that. Each payment method can have its own billing address details https://stripe.com/docs/api/payment_methods/create#create_payment_method-billing_details
and with the fraud, it is enough to have only the country of the billing address ?
Hello! I'm taking over and catching up...
How much billing information you collect is up to you, and depends on your specific needs and risk profile. We generally recommend that you collect as much as possible, but usually the postal code is the recommended minimum for card payments when it comes to address info.
it depends also of the country, because if I select UK I have to provide the postal code but it's not the case with France
Yep, not all countries have postal codes that work the same way.