Sitecore Commerce 8.2.1 Installation Guide for Reference Storefront-Part 8
Sitecore Commerce 8.2.1 Installation Guide for Reference Storefront-Part 8
Once the Commerce Engine is compiled and deployed next is to configure the payment option for site.Follow the below steps to configure payment option
Before you perform the Bootstrap initialization, review the Default Commerce Engine service settings section. If you have not configured the environment .json files correctly, the process may fail.
Continue Reading https://xchangesitecore.com/sitecore-commerce-8-2-1-installation-guide-for-reference-storefront-part-8/ Vikash Raaj
Bootstrap and initialize the Commerce Engine environment
Once the Commerce Engine is compiled and deployed next is to configure the payment option for site.Follow the below steps to configure payment option
Configure web payment functionality for the site
- Launch https://www.braintreepayments.com/sandbox
- Enter the necessary information in the Sign up for the sandbox pane, and click Try the sandbox.
- Follow the instructions to activate and log in to your Braintree sandbox account.
- Get the MerchantID, Public Key and Private Key information from the Braintree sandbox website.
- Use the information from step 4 to fill in the corresponding section inside the PlugIn.Habitat.CommerceAuthoring-1.0.0.json file under the .\CommerceAuthoring\wwwroot\data\Environments
- search for Plugin.Sample.Payments.Braintree.BraintreeClientPolicy inside the PlugIn.Habitat.CommerceAuthoring-1.0.0.json file
- Replace the value with your new generated keys.Make sure the key values are contained by quotation marks. For example:
Bootstrap and initialize the Commerce Server environment
Before you perform the Bootstrap initialization, review the Default Commerce Engine service settings section. If you have not configured the environment .json files correctly, the process may fail.
- Navigate to .\CommerceAuthoring\wwwroot\bootstrap and open Global.json
- Search for "Server" in gloabl.json.Make sure the server is correct.if not change the value.
Note:The string values inside .json files must be properly escaped. For example, the "Server" values must be formatted as: "MachineName\\SQLInstanceName". Note the double backslash.
- Search for "ServiceUrl" in global.json and verify your catalog web service url is correct else modify with your catalog webservice url.
- Navigate to .\CommerceAuthoring\wwwroot\data\Environments\PlugIn.Habitat.CommerceAuthoring-1.0.0.json
- Search for "Host" in PlugIn.Habitat.CommerceAuthoring-1.0.0.json.Make sure that you have proper https binding and ssl certificate with that mentioned host name.For Example:In below in image the Host is cs.refernce.com.you should have https (https://cs.refernce.com)binding for your storefront instance and the respective host entry.
- Search for "Server" and change the value in PlugIn.Habitat.CommerceAuthoring-1.0.0.json and refer the above step .
- Repeat the above steps for PlugIn.Habitat.CommerceMinions-1.0.0.json and PlugIn.Habitat.CommerceShops-1.0.0.json
- Open a browser and run http://localhost:5000/commerceops/Bootstrap(). The URL is case-sensitive.
- When the Bootstrap process finishes, you can view new rows inside the "CommerceEntities" and "CommerceLists" tables of the SitecoreCommerce_Global database.
- the Bootstrap process does not finish as expected, check the CommerceAuthoring\wwwroot\logs for possible errors and clear it and reinitialize the bootstrap process
Note:To run the initialization process again, you must clear all rows in the "CommerceEntities" and "CommerceLists" tables from SitecoreCommerce_Global,sitecoreCommerce_shared and restart the CommerceAuthoring site to clear the cache. - once you bootstrap initialization is sucess.Run the below url.
Note that the following URLs are case-sensitive; if you copy the URLs from this topic, make sure there are no invisible formatting characters for the quotation marks.
- Open http://localhost:5000/commerceops/InitializeEnvironment(environment='HabitatAuthoring') in a browser to initialize the Habitat Authoring environment.
- Open http://localhost:5000/commerceops/InitializeEnvironment(environment='HabitatAuthoring') in a browser to initialize the Habitat Authoring environment.
Continue Reading https://xchangesitecore.com/sitecore-commerce-8-2-1-installation-guide-for-reference-storefront-part-8/ Vikash Raaj
Comments
Post a Comment