Sample: Payment Rules JSP snippets
JSP snippet files related to Payment Rules are provided in the following directories:
- WC_installdir/samples/Snippets/web/EDP/PaymentMethods
- WCDE_installdir/samples/Snippets/web/EDP/PaymentMethods
For additional information about how to use a particular snippet, refer to the comments provided in the JSP file. The starter stores provided in WebSphere Commerce already have many of these JSP files incorporated. If you are creating your own store, you should incorporate the PaymentMethodsDisplay and the appropriate Standardxxx.JSP snippet for use by your store.
- PaymentMethodsDisplay.jsp: Displays, on the store's checkout page, a list of the available payment methods available for use in a drop-down list. The payment methods are derived from the POLICY database table.
- StandardAmex.jsp: Displays entry fields to collect information for the American Express payment method: card number, expiration month, and expiration year.
- StandardVisa.jsp: Displays entry fields to collect information for the VISA payment method: card number, expiration month, expiration year, card verification value (CVV2) number.
- StandardMasterCard.jsp: Displays entry fields to collect information for the Master Card payment method: card number, expiration month, expiration year.
- StandardCheck.jsp: Displays entry fields to collect information for the electronic check payment method: bank routing number, and bank account number.
- StandardBillMeLater.jsp: Displays entry fields to collect information for the Bill Me Later payment method: PO number, first name, last name, street address, city, state/province, zip/postal code, country (region), and phone number.
- StandardCOD.jsp: Displays entry fields to collect information for the Cash on Delivery payment method: first name, last name, delivery address, city, state/province, zip/postal code, country (region), and phone.
- StandardLOC.jsp: Displays entry fields to collect information for the Line of Credit payment method: account number, PO number, order ID.
PaymentMethodsDisplay.jsp
To use this JSP snippet, copy the PaymentMethodsDisplay.jsp file from the samples directory to the store directory. For example, to: WC_eardir/Stores.war/store/Snippets/EDP/PaymentMethods
- WC_eardir/Stores.war/store/Snippets/EDP/PaymentMethods
- workspacedir/Stores/Web Content/store/Snippets/EDP/PaymentMethods
Update the JSP file your store is using as the checkout page to either include the snippet or import the snippet. Some WebSphere Commerce starter stores use the OrderSubmitForm.jsp file, but other starter stores might use a JSP file with a different name to perform checkout. If you choose to import the snippet rather than copy it in entirely into your JSP file, refer to the JSP comments for the appropriate syntax to use with the import statement.
(C) Copyright IBM Corporation 1996, 2006. All Rights Reserved.