Tutorials > Payments > Develop a payment plug-in
Step 10: Updating the KEYS table
The generateTransactionId method that was added in step 3 uses the WebSphere Commerce Key Manager to generate the tracking numbers. In this step, we will specify how the tracking numbers are generated by updating the KEYS table.
- Prerequisites
- Payment Service Provider Simulator
To update the KEYS table:
Procedure
- Open a new browser window and enter the following URL: http://localhost/webapp/wcs/admin/servlet/db.jsp
- In the text box, type:
INSERT INTO KEYS (KEYS_ID, TABLENAME, COLUMNNAME, COUNTER) VALUES ((SELECT MAX(KEYS_ID)+1 from KEYS), 'MyPaymentPlugin', 'MyPaymentPlugin', 10000);
- Click Submit Query.