Retrieving a Merchant Key

Have you ever wondered how to retrieve a forgotten Merchant Key. Using a simple JSP page, say debug.jsp, add this line to print the merchant key:

com.ibm.commerce.server.WcsApp.configProperties.getMerchantKey()

Copy debug.jsp to any of the folders or a custom folder under Stores.war. Call debug.jsp from your favorite browser.

If you noticed, the class used is com.ibm.commerce.server.WcsApp. This class has several static methods and properties that can help you retrieve the information about your commerce instance, the server and the web application.

Comments are closed.