You can customize the sample JSP files that are provided for payment processing to suit different cassettes.
The following views are provided by default:
- OrderOKView
- DoPaymentErrorView
By default, the bootstrap data is set up for all stores (storeEnt_id of 0) in the VIEWREG table to use the PayStatusPM.jsp for the PaySuccessView, PayCancelView and PayFailureView and PayService.jsp for the PayServiceView.
Move these two sample JavaServer Pages files from the WC_installdir/samples/web/payment/ directory to each of the following directories:
WC_installdir/wc.ear/Stores.war/store_directory/
WAS_installdir/installedApps/node_name/WC_Enterprise_App_
instance_name.ear/Stores.war/store_directory
/QIBM/UserData/WebAS5/Base/instance_name/installedApps/node_name/WC_Enterprise_App_
instance_name.ear/Stores.war/store_directory/
Once the JSP files have been moved, the system will be able to locate them. You may want to customized the files for your use. For example, you can add your store banner, logo, or change the color scheme and fonts.
The PayStatusPM.jsp is an all-purpose sample JSP file that many of the views related to payment processing could specify. Besides the PaySuccessView, PayCancelView, PayFailureView and PayServiceView mentioned above, the OrderOKView could also be set up to specify this JSP file.
To set up the OrderOKView manually in the VIEWREG table, ensure you specify the ForwardViewCommand interface. The appropriate values for setting up the OrderOKView entry in the VIEWREG table are as follows:
Column | Value |
---|---|
viewname | OrderOKView |
interfacename | com.ibm.commerce.command.ForwardViewCommand |
classname | com.ibm.commerce.command.HttpForwardViewCommandImpl |
devicefmt_id | -1 |
properties | docname=JSP file name |
The default page for the DoPaymentErrorView is GenericApplicationError.jsp,
located in the following directories:
WC_installdir/wc.ear/Stores.war/store_directory/
and
WAS_installdir/installedApps/node_name/WC_Enterprise_App_
instance_name.ear/Stores.war/store_directory/
/QIBM/UserData/WebAS5/Base/instance_name/installedApps/node_name/WC_Enterprise_App_
instance_name.ear/Stores.war/store_directory/
This sample JSP file is specified by many error views by default. Its purpose is to show the error information that is available from the ErrorDataBean that the JSP file receives from the server. You should provide your own customized Error Page to display a more meaningful message to the customer.