HCL Commerce Enterprise

Payment business policies

Payment business policies define various aspects of receiving payments and paying refunds.

Payment methods

A store can support payment methods handled by HCL Commerce Payments or accept a credit line as a payment method. The payment method policies define a number of payment business policy commands to be used when invoking various payment functions. The business policy commands defined are:

HCL Commerce provides two sets of implementation classes for these payment business policy commands. One to handle the credit line payment method and the other to handle all payment methods supported by HCL Commerce Payments Cassettes.

Invoice format

The invoice format defines the layout of invoices sent to buyers by e-mail. The layout is specified using the viewName property of the InvoiceFormat policy. The viewName property specifies the name of the view in the struts configuration. This view specifies a JavaServer Pages file that is used to generate the e-mail that is send to the business account contact.

An InvoiceFormat policy with the policyName "DefaultInvoiceFormat" and viewName "InvoiceView" is included as sample in the bootstrap data. You can also find a sample JavaServer Pages (JSP) file in following location:

WCDE_installdir\samples\web\payment\Invoice.jsp

To use this JSP file with the DefaultInvoiceFormat policy, you must copy this sample JSP file to the directory where you store your other store-level JSP files.

Payment business policies are pre-defined in the bootstrap data.