Develop > Controller layer > Integrate with back-end systems and external applications > Customize WebSphere Commerce Payments > Cashier function in WebSphere Commerce Payments


Cashier profiles

Cashier profiles are XML documents that implement the profile.dtd document type definition.

The profiles must contain the following basic structure:

<?xml version="1.0" encoding="UTF-8"?>  
<!DOCTYPE Profile SYSTEM "profile.dtd">   
<Profile useWallet="false" enableTrace="true">   
<CollectPayment>  ... 
</CollectPayment>
<Command name="DEPOSIT">  ... 
</Command> ...
</Profile>

All of the information needed to connect to WebSphere Commerce Payments is supplied by way of the Payments page in the Configuration Manager.

When the useWallet attribute is set to true, the Cashier builds a ReceivePayment API request when the Cashier.collectPayment(...) method is called. If the attribute is set to false, an AcceptPayment API request is constructed instead.

The following Cashier profiles are supplied by WebSphere Commerce:

WebSphere Commerce-provided Cashier profiles all have the enableTrace attribute set to true so that the Cashier will always record diagnostic information. However, since the actual trace() method used by the Cashier to record this information is the WebSphere Commerce trace class ECTrace, the trace setting controls whether the diagnostic information is written to the log. Tracing for the Cashier function is enabled when you enable tracing for the Order component.


Related concepts

Cashier profiles


Related tasks

Add a new payment business policy

Create new Cashier profiles


+

Search Tips   |   Advanced Search