Tutorials > Payments > Develop a payment plug-in

< Previous | Next >


Step 9: 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, we will set the value of this merchant configuration property for the ConsumerDirect store.

Prerequisites

Payment Service Provider Simulator

To define the merchant configuration property and specify its value:


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 ConsumerDirect.

  7. Click OK. The Administration Console opens.

  8. Use the original browser window, enter the following URL:

    https://localhost:8002/webapp/wcs/tools/servlet/PPCMerchantEdit?actionName=create&merchantName=ConsumerDirectMerchant
    

    This URL creates a merchant named ConsumerDirectMerchant.

    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='ConsumerDirectMerchant';
    

  11. Click Submit Query. The result is similar to the following screen capture:

    Note the value of MERCHANT_ID.

  12. Use 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 ConsumerDirect store.

    Note that the browser window returns a blank page.

  13. Use 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.

  16. Use 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 ConsumerDirectMerchant 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:

  19. Go to the Administration Console opened in step 7 and click Logout.

  20. Close the other browser windows.


Related concepts

Merchant feature

Related reference

Payment merchant support data model

< Previous | Next >


+

Search Tips   |   Advanced Search