Specifying the merchant configuration properties

The payment plug-in API methods that are implemented in Step 3 contains references to a merchant configuration property named merchantId. In this step, you will set the value of this merchant configuration property for the Madisons starter store.

Procedure

  1. Open the Administration Console.
  2. In the User name field, type wcsadmin.
  3. In the Password field, type the wcsadmin password.
  4. Click Log On.
  5. Select the Store option.
  6. In the Store name list, select Madisons.
  7. Click OK. The Administration Console opens.
  8. Using the original browser window, enter the following URL:
    
    https://localhost:8002/webapp/wcs/tools/servlet/PPCMerchantEdit?actionName=create&merchantName=MadisonsMerchant
    

    This URL creates a merchant named MadisonsMerchant.

    Note that the browser window returns a blank page.

  9. Open a new browser window and enter the following URL:
    
    http://localhost/webapp/wcs/admin/servlet/db.jsp
    
  10. In the text box, type:
    
    SELECT * FROM MERCHANT WHERE NAME='MadisonsMerchant';
    
  11. Click Submit Query. The result is similar to the following screen capture:

    The database client applet for MadisonsMerchant query

    Note the value of MERCHANT_ID.

  12. Using the original browser window, enter the following URL:
    
    https://localhost:8002/webapp/wcs/admin/servlet/PPCStoreMerchantAssociate?actionName=create&merchantId=MERCHANT_ID 
    

    where MERCHANT_ID is the value of MERCHANT_ID in step 11. This URL associates the merchant created in step 8 with the Madisons starter store.

    Note that the browser window returns a blank page.

  13. Using the original browser window, enter the following URL:
    
     https://localhost:8002/webapp/wcs/stores/servlet/PPCMerchantConfigurationEdit?actionName=create
      &merchantId=MERCHANT_ID&paymentConfigurationGroup=default&paymentSystemName=MyPaymentSystem
     
    
    where MERCHANT_ID is the value of MERCHANT_ID in step 11.

    Note that the browser window returns a blank page.

  14. Go to the browser window opened in step 9. In the text box, type:
    
    SELECT * FROM MERCHCONF WHERE MERCHANT_ID=MERCHANT_ID;
    
    where MERCHANT_ID is the value of MERCHANT_ID in step 11.
  15. Click Submit Query. The result is similar to the following screen capture: Note the value of MERCHCONF_ID.

    The database client applet Merchant_Id query.

  16. Using the original browser window, enter the following URL:
    
     https://localhost:8002/webapp/wcs/stores/servlet/PPCMerchantConfigurationInfoEdit?actionName=create
      &merchantConfId=MERCHCONF_ID&propertyName_1=merchantId&propertyValue_1=CDMERCH 
    
    where MERCHCONF_ID is the value of MERCHCONF_ID in step 15. This URL sets the value of the merchant configuration property merchantId to CDMERCH for the merchant MadisonstMerchant and the payment system MyPaymentSystem.

    Note that browser window returns a blank page.

  17. Go to the browser window opened in step 9. In the text box, type:
    
    SELECT * FROM MERCHCONFINFO WHERE MERCHCONF_ID=MERCHCONF_ID;
    
    where MERCHCONF_ID is the value of MERCHCONF_ID in step 15.
  18. Click Submit Query. Confirm that the result is similar to the following screen capture:

    The database client applet for Merchconf_Id query.

  19. Go to the Administration Console opened in step 7 and click Logout.
  20. Close the other browser windows.