#Kacper Wilczewski

1 messages · Page 1 of 1 (latest)

gusty blazeBOT
raw spindle
#

hi! no we don't have a standalone Element for just that

high sapphire
#

ouu :/
Is there a props that I can use to trigger validation for the AddressElement?

raw spindle
#

can you elaborate on what kind of validation you're referring to?

high sapphire
#

'm using the AddressElement component in my React application, and I want clicking a button to trigger validation for the fields contained within the AddressElement. By validation, I mean checking if the fields are filled in, if the ZIP code is valid, if a country is selected, and so on.

raw spindle
gusty blazeBOT
high sapphire
#

And does Stripe provide an API where I can send form data to validate the following information: tax ID, city, postal code, line, line2, phone?

marsh badge
#

Hey! Taking over for my colleague. .

And does Stripe provide an API where I can send form data to validate the following information: tax ID, city, postal code, line, line2, phone?
Nope, there is no public API for this

high sapphire
#

Can we add rules for validating the AddressElement?

marsh badge
#

You can customize the appearance of the Element but not the validation rules.