Creating and configuring the API key in the Google Cloud Platform console
- Sign in to the Google Cloud Platform console.
- From the navigation pane, select APIs & Services > Credentials.
- Select Create credentials > API key .
- Click RESTRICT KEY.
- In the Application restrictions section, click HTTP referrers (web sites).
- In the Website restrictions section, click ADD AN ITEM.
- Specify the URL for your web shop. To ensure that all pages in your web shop are validated, specify a forward slash and asterisk after the URL. For example, specify https://www.mywebshop.com/*.
- If you have more than one web shop, repeat steps 6 and 7 for your other web shops.
- Click ADD AN ITEM.
-
Specify the URL for the Stores form in the Business Center. Ensure that you include a forward slash and asterisk after the URL. For
example, specify https://mysite.infor.com/ecomapp/bc/*.
Note: To identify the URL of the Business Center, Right-click any form in the Business Center and select View frame source. The URL is displayed in the address bar. When you add the URL in the Google Cloud Platform Console, omit the final part of the address. For example, if the frame source is https://mysite.infor.com/ecomapp/bc/Welcome.jsp, use https://mysite.infor.com/ecomapp/bc/* as the URL.
-
In the API restrictions section, click Restrict
key. Restrict the key to these APIs:
- Distance Matrix API
- Maps JavaScript API
- Places API
- Click Save.