Modifying store JSP files to specify the payment policy

In this step, you will modify the store JSP files to specify the name of the payment policy you intend to use. This step is unrelated to 3-D Secure files, but since you are modifying JSP files at this stage, IBM recommends that you perform this task now. If your store is configured to use the OfflineCard credit card payment method (that is, if it is not configured to use the Paymentech or VisaNet payment method), follow these steps.

To modify the store JSP files to specify the payment policy...

  1. From your store's directory, open the PaymentMethodsDisplay.jsp file in a text editor. For the location of this file, see Modifying the store JSP files to use the command SecureThreeDCmd.

    The PaymentMethodsDisplay.jsp file is not available for all WebSphere Commerce store models. If you are using a starter store that does not have this JSP file, search your store's JSP files for the payment policy string below and replace the text 1s described in the next step.

  2. Search for the following text in the PaymentMethodsDisplay.jsp file:
    if (info[i].getPolicyName().trim().equalsIgnoreCase("OfflineCard"))
    
    

    Change the name of the payment policy from OfflineCard to one of the following.

    Paymentech
    VisaNet
    VisaNet_PCard
    
    
    For example:
    if (info[i].getPolicyName().trim().equalsIgnoreCase("Paymentech")) 
    
    

    If you are using the Cassette for VisaNet with purchasing card support, select VisaNet_PCard rather than VisaNet.

    For more information about policies, see the POLICY database table in the WebSphere Commerce Development online help.

    The policy for Paymentech supports online authorization and settlement of credit card and non-PIN based debit card payments. The payment method associated with this cassette is Credit Card.

    The policy for VisaNet supports processing of credit card transactions. The payment method associated with this cassette is US Dollar Credit Card.

     
    
    

Related tasks