Onboarding Quotes
General Overview​
These features allow users to view available quotes for a chosen address from the postcode lookup.
Add the following environment variables to your .env.local file.
note
The NEXT_PUBLIC_POSTCODE_REGEX value shown below is an example for UK postcodes. Update this regex to match the postcode format for your market.
NEXT_PUBLIC_BRAND_CODE="ENERGY_PROVIDER"
NEXT_PUBLIC_ACCOUNT_TYPE="DOMESTIC"
NEXT_PUBLIC_PAYMENT_METHOD="DIRECT_DEBIT"
NEXT_PUBLIC_POSTCODE_REGEX=/^[A-Z]{1,2}\d[A-Z\d]?\s*\d[A-Z]{2}$/i
Address lookup​
The address lookup is a feature that allows users to search for an address by postcode.
Tariff selection​
The tariff selection is a feature that allows users to select a tariff from the list of available tariffs.