Support postcode lookup using pro6pp.nl
composer require rapidez/pro6pp-postcode
Add your credentials in the .env
PRO6PP_API_KEY=The key that needs to be used might also be called auth_key
In case you have your own postcode fields you want checked and updated you can emit the postcode-change event passing a reactive object with the following keys:
country_id/country_codepostcodestreet[0]street[1]city
Then you can use it like:
<input
v-on:change="window.$emit('postcode-change', addressVariables)"
name="postcode"
label="Postcode"
v-model="addressVariables.postcode"
required
/>
<input
v-on:change="window.$emit('postcode-change', addressVariables)"
name="street[1]"
type="number"
label="House number"
v-model="addressVariables.street[1]"
placeholder=""
/>Currently only Dutch address completion is implemented!
GNU General Public License v3. Please see License File for more information.