LOC (Line of credit) plug-in

The LOC plug-in enables merchants to use lines of credit as a payment method. It enables buyers to delay the payment settlement for orders and is intended to integrate with accounts receivable systems used by customers. The LOC plug-in mimics the function of an actual line of credit. By default, it does not connect to an accounts receivable system. To connect to an account receivable system, we must write our own version of the plug-in.

In a B2B store, the contract terms and conditions allow payments or refunds using a credit line if the business account has a credit line. The creation, modification, or deletion of the credit line is managed by a business account in WebSphere Commerce.

To use a credit line as a payment method, a buyer negotiates with a seller and creates an account with the seller in WebSphere Commerce with the appropriate credit line settings. When a buyer places an order in a store and specifies the line of credit payment method, the account is checked to see if active credit line exists between the buyer and seller. If the credit line is active, the payment instruction is recorded for the order and payment is authorized. The credit line is checked to ensure that it is still active when the order is fulfilled, when the deposit for the payment occurs, and when a refund is issued. The account holder is responsible for payment settlement on an outstanding balance on a credit line. If a credit line is used for payment, the seller debits the account for an order at the time of payment capture and the account is credited during payment settlement. To enable a credit line for a business account, refer to Enable a credit line for a B2B store.


Processing flow

The following scenario summarizes how the LOC plug-in handles credit-line transactions:

  1. A customer logs in to a B2B store, browses a catalog, and adds an item to a shopping cart. The price is defined by a contract and the contract includes an account with a defined credit line. The credit line is active.

  2. The customer proceeds to check out and sees that there is a credit line option as a payment method. The customer selects LOC as the payment method.

  3. The customer submits the order.

  4. The Payment rules engine creates a payment instruction in the database.

  5. The Payment plug-in controller identifies the LOC plug-in as the plug-in to use by checking the PaymentSystemPluginMapping.xml configuration file. This configuration file identifies the plug-in to use for a specific payment system and payment configuration ID. A store is associated with a payment configuration ID in the POLICY database table.

  6. The LOC plug-in checks if the required data is included in the payment instruction. (If data is missing or incorrect the plug-in produces an invalid parameter error.) The data is included so the payment instruction is considered valid and the Payment plug-in controller performs the approve transaction.

  7. A new payment is created in the database.

  8. The LOC plug-in checks the parameters.

  9. The database is updated with information received from the LOC plug-in. The Payment plug-in controller returns an indication that the payment was approved successfully.

  10. The customer receives a confirmation message Order has been successfully processed.


Contents and location

The LOC plug-in package contains:

The JAR file for the plug-in and plug-in deployment descriptor are in the following directories:

The required parameters for the LOC plug-in are:


Plug-in restrictions

The LOC plug-in does not support currency conversion and cannot detect if the currency in the order is the same as defined in the account. The currency that is provided by the order capture process is the currency used by the LOC plug-in.

The LOC plug-in does not support the QueryablePlugin interface in the Payment plug-in specification.


LOC plug-in security

The LOC plug-in delegates the encryption and storage of sensitive data in the database. The plug-in does not have any access control. The plug-in grants the accesses that are permitted by the Payment rules engine.


LOC plug-in payment and credit state handling

The LOC plug-in moves payment and credit states according to the Payment plug-in specification. There are no particular exceptions to how the plug-in moves payment and credit states.


LOC plug-in messages

The LOC plug-in does not use any special messages resource bundle and therefore has no additional properties files for message translation. It uses the standard messaging functions that are described in the Payment plug-in specification.


Related concepts
SimpleOffline plug-in
Paymentech plug-in
SimplePunchout plug-in


Related tasks
Configure the LOC plug-in
Enable a credit line for a B2B store


Related reference
LOC plug-in financial transactions