Manual Shipping Address Validation

 

WebAlliance has the ability to integrate with SmartyStreets and Google Maps to provide address validation for manually entered addresses in the shopping cart.

How does Address Validation work?

Address validation will compare the address a user enters against the SmartyStreets or Google Maps validation service. If the service can't verify the address the user entered but finds a valid alternative, it will show the user a "Recommended Address".  The user can then choose to either keep the original address they entered or select the recommended address.

Admin note: successfully validated Shipping Addresses will show a verification message on the Order Detail page of the cart.

Configuring Your Google Cloud API Settings

You will first need to configure your Google Cloud API Settings to be functional on your site. You can access these settings in your Google Cloud account.

  • Visit your Google Cloud Console dashboard.
  • Click "Go to APIs Overview".
  • Click "Enable APIs and Services".
  • Enable the Places API, Address Validation API, and Geocoding API. 

When the process finishes, the newly enabled APIs should appears in the list of APIs on the dashboard.

Remove Application Restrictions from API Key

You will also need to remove any Application Restrictions from the API key to be fully functional on your site.

  • Navigate to your API Key Credentials in your Google Cloud account.
  • Select the API Key you are using for your site.
  • Set the "Application Restrictions" to "None".
  • Set the "API Restrictions" to "Don't Restrict Key".

Enabling Address Validation on Your Site

You can find the settings to enable Address Validation in the Site Settings under Credentials > Addresses > Validation. Here, you can choose which API you'd like to integrate with by selecting from the Service Provider dropdown. You'll need to enter your API credentials in the Integrations tool at www.yourdomain.com/admin2/settings/integrations/home#other. You will need: 

  • For Google: 
    • API Key
  • For SmartyStreets
    • Authorization ID
    • Authorization Token