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:
- WCPPlugin_BankServACH.profile
- WCPPlugin_CustomOffline_BillMe.profile
- WCPPlugin_CustomOffline_COD.profile
- WCPPlugin_OfflineCard.profile
- WCPPlugin_Paymentech.profile
- WCPPlugin_VisaNet.profile
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.
- Cashier profile for the Cassette for VisaNet with purchasing card data
The following XML code is the standard cashier profile provided in WebSphere Commerce for the Cassette for VisaNet. This Cashier profile specifies the optional purchasing card data supported by the cassette. The purchasing card method sends additional purchasing card data to the Acquirer. Only a subset of purchasing card level II data is supported by the cassette.
- Cashier profile for the Cassette for VisaNet
The following XML code is the standard cashier profile provided in WebSphere Commerce for the Cassette for VisaNet:
- Cashier profile for OfflineCard cassette
The following XML code is the standard Cashier profile provided in WebSphere Commerce for the OfflineCard cassette.
- Cashier profile for the CustomOffline cassette (Bill Me payment method)
The following XML code is the sample Cashier profile provided in WebSphere Commerce for the CustomOffline cassette using the BillMe payment method. "BillMe" is the internal keyword value for the $METHOD protocol data parameter required by the cassette.
- Cashier profile for the CustomOffline cassette (COD payment method)
The following XML code is the sample cashier profile provided in WebSphere Commerce for the CustomOffline cassette Cash-On-Delivery (C.O.D) payment method. "COD" is the internal keyword value for the $METHOD protocol data parameter required by the cassette:
- Cashier profile for the Cassette for BankServACH
The following XML code is the standard Cashier profile provided in WebSphere Commerce for the Cassette for BankServACH:
Related concepts
Related tasks
Add a new payment business policy