Adding a new payment or refund method
If you are adding a new payment method or refund method, you must update the WebSphere Commerce database tables that contain information about the payment methods or refund methods that your store will use. The business policy tables do not contain information about the type of payment or refund actions or rules the Payments subsystem will use. They identify the payment and refund methods. The payment and refund actions are defined by configuring XML files.
About this task
Whenever a new payment or refund method is added to a store, a business policy with the Payment or ReturnPayment type must be created in the business POLICY table (with corresponding entries in the POLICYDESC table), and the POLICYCMD table will be inserted a set of payment policy commands. For every new entry added to the POLICY table, the value for the Business Policy Name field must match the payment (or refund) method ID configured in payment rules (the paymentMethod value in the PaymentMethodConfigurations.xml file, or the refundMethod value in the RefundMethodConfigurations.xml file).
Procedure
- If your Payment methods is not supported, create a new payment or refund method configuration for the payment or refund method in PaymentMethodConfigurations.xml or RefundMethodConfigurations.xml.
- Configure the payment rules you want to use with the payment method or refund method by editing the PaymentMappings XML file.
- For B2B direct stores, set up any necessary payment terms and conditions.
- Modify the store JSP page to use JSP code snippets that support the payment methods. See Sample: Payment method JSP snippets. Generally, a new payment method will require a new JSP code snippet.
- Configure the payment plug-in you intend to use.