#Ryan Walsh
1 messages · Page 1 of 1 (latest)
Hi 👋 I would recommend progressing with the Payment Element, it is significantly newer and more robust.
You can suppress the collection of Country and Zip code by setting those fields (in fields.billingDetails) to never when initializing the Payment Element:
https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields
You can then provide the values, that you're collecting from your own UI, for country and zip to via confirmParams.payment_method_data.billing_details when confirming the Payment Intent.
@sacred night Thanks for your answer!
Is there no way to omit them entirely?
I think I remember that the last time I built on Stripe (years ago) they were optional but recommended for reducing fraud.
From what you're saying now, it sounds like I can remove them from the form only if I've collected them elsewhere and will provide them when confirming the payment intent, and that there is no way to skip them entirely.
Our UIs try to ask for the minimum amount of information possible to keep them lightweight, but the information they do ask for is collected as those values have been proven to have an impact on the likelihood of a payment being authorized by the issuer.
I'm not sure offhand if those values can be omitted entirely and the associated request not encounter an error, but I would recommend you test that if it is how you'd like your flow to work.
@sacred night Ok, thanks for your help!
Any time!