Modifying the store JSP files to use the command SecureThreeDCmd

You must change the PaymentMethodsDisplay.jsp file that your store uses during the PI Add so that it calls the command SecureThreeDCmd instead of the PIAdd command.

The JSP file you should change is called PaymentMethodsDisplay.jsp. You can search for the string "PIAdd" in the store directory (especially in the checkout-related subdirectory) to find the appropriate file, and make similar modifications as described here.

To modify the store JSP file to use the SecureThreeDCmd...

  1. Go to the following directory:

    The store you created has Stores.war directory in production environment or store_name directory in development environment.

  2. From your store's directory, open the PaymentMethodsDisplay.jsp(or equivalent) file in a text editor. The PaymentMethodsDisplay.jsp file is located in a store subdirectory (for example, for FashionFlow, in the following path):
    WC_eardir/Stores.war/store/ShoppingArea/CheckoutSection/QuickCheckoutSubsection Whereas, on the toolkit machine the file is under the EDP folder :workspace_dir\Stores\WebContent\store_name\Snippets\EDP\PaymentMethods\

  3. Search for the string <form name="CardInfo" or action="PIAdd" in the file. Replace the string "PIAdd" with SecureThreeDCmd", and save the changes in the file. For example: <form Name="CardInfo" method="post" action="PIAdd" id="CardInfo"> Change the string to: <form Name="CardInfo" method="post" action="SecureThreeDCmd" id="CardInfo"> Then in the same form, add a field <input type=hidden name="submit_method" value="PIAdd" />

Modifying the store JSP files ensures that the SecureThreeDCmd will be called before the PIAdd command. Related tasksModifying store JSP files to specify the payment policy