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>
WebSphere Commerce does not support the WebSphere Commerce Payments Configuration element in the Cashier profiles that WebSphere Commerce uses with the Commerce Payments. All of the information needed to connect to 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:
- Cashier profile for the Cassette for BankServACH
- Cashier profile for the CustomOffline cassette - BillMe method
- Cashier profile for CustomOffline cassette - COD method
- Cashier profile for OfflineCard cassette
- Cashier profile for the Cassette for Paymentech
- Cashier profile for Cassette for VisaNet
Cashier profile for Cassette for VisaNet purchasing card method
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.