Tutorials > Payments > Develop a payment plug-in
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
- Open the Administration Console.
- In the User name field, type wcsadmin.
- In the Password field, type the wcsadmin password.
- Click Log On.
- Select the Store option.
- In the Store name list, select ConsumerDirect.
- Click OK. The Administration Console opens.
- 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.
- Open a new browser window and enter the following URL:
http://localhost/webapp/wcs/admin/servlet/db.jsp
- In the text box, type:
SELECT * FROM MERCHANT WHERE NAME='ConsumerDirectMerchant';
- Click Submit Query. The result is similar to the following screen capture:
Note the value of MERCHANT_ID.
- 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.
- 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=MyPaymentSystemwhere MERCHANT_ID is the value of MERCHANT_ID in step 11.
Note that the browser window returns a blank page.
- 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.
- Click Submit Query. The result is similar to the following screen capture:
Note the value of MERCHCONF_ID.
- 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=CDMERCHwhere 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.
- 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.
- Click Submit Query. Confirm that the result is similar to the following screen capture:
- Go to the Administration Console opened in step 7 and click Logout.
- Close the other browser windows.
Related concepts
Related reference
Payment merchant support data model