Developer forum

Forum » Dynamicweb 10 » Address Validation for DW10

Address Validation for DW10

Kyle Fesmire
Reply

Hi team,

I have a partner that is working on a customer site. As they are setting up their addresses for customers, they asked about address validation for customers entering their addresses on the frontend of the site. They want to make sure that the addresses are correct and valid. 

Looking at our documentation for DW10 (https://doc.dynamicweb.dev/manual/dynamicweb10/settings/areas/commerce/ordermanagement/addressvalidation.html?q=address%20validation) it seems like we would use a provider to run address validation. The documentation all makes sense to me - just curious about the last line: "Currently no validation providers are available on DW10." Is that true? If so, how are we doing address validation on DW10?

Thanks!

KF


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Kyle

You can install Avalara Tax provider or Fedex shipping provider. Both of them contains an address validator.

This is a US concept only, so we do not have a lot of experience doing these things.

In the Swift checkout it is possible to enable Googles address api that will help enter manual addresses in the checkout flow.

An option is also to use the google JS api directly in the frontend - it is super simple to setup where needed.

https://developers.google.com/maps/documentation/address-validation/overview

Votes for this answer: 1
 
Kyle Fesmire
Reply

HI Nicolai,

Thanks for clarifying and providing the second option. Both look great to me so I'll share those both with the partner - thanks for your help!

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Note that this:

>> In the Swift checkout it is possible to enable Googles address api that will help enter manual addresses in the checkout flow.

and address validation are two different things. Google addresses primarily helps with auto-complete; you type a partial address, and Google will attempt to complete - but not validate - it.

Address validation goes much deeper; it provides context on whether an address actually exists and things can be delivered to it. Some providers can offer "roof top accuracy" where they provide information about where exactly an address is which is needed in the US for tax calculation (among other things). It's not impossible that an address on one site of the street falls into a different tax jurisdiction area than another, which could lead to different tax calculations (such as environmental fees).

With address validation implemented in DW, you can prevent users from entering an invalid address and ask them to correct it. The Avalara and FedEx providers are indeed for the US only but you could build your own validator if you have another address service for the validation.

Note: I helped build the Avalara provider years ago when I was in charge of the tech department of DW in the US. That was years ago, so things may have changed since (but I doubt that).

Imar

 

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

@Imar - good point. And yes - it means a lot to have very accurate addresses in the US.

 

You must be logged in to post in the forum