#p33p0
1 messages · Page 1 of 1 (latest)
Hi 👋 I'm thinking you're referring to our Card Element, but please let me know if that is incorrect.
There is not a way to force zip/postal code collection there, and I'm not sure all countries have zip/postal codes. If you would like to always try to collect that information, you will need to add your own field for that and can then use this to suppress the collection of postal code in the Card Element:
https://stripe.com/docs/js/elements_object/create_element?type=card#elements_create-options-hidePostalCode
ok thanks, i'll take a look at this
follow up Q, we would still want to populate the postcode field associated with the clients card in stripe, i guess we'd have to make an update call of some kind
e.g.
Yes, when confirming the Payment Intent you'll want to pass the postal code that you collected in your field to us via payment_method.billing_details.