Develop > Controller layer > Integrate with back-end systems and external applications > Customize WebSphere Commerce Payments > OfflineCard Cassette


CustomOffline Cassette Cashier profiles

The WebSphere Commerce Payments Cashier can be invoked by client applications, such as merchant software, to simplify the process of creating WebSphere Commerce Payments orders and payments. The Cashier uses XML documents called profiles that describe how orders should be created for a given cassette. This allows the client code developer to concentrate on integrating with WebSphere Commerce Payments in a generic way rather than having to write code that deals with cassette-specific information.

It is still possible to create WebSphere Commerce Payments orders without using the Cashier; programs can use the client access library or the HTTP/XML interface to use the AcceptPayment API, for example. However, the use of the Cashier is preferred since it allows the potential for new cassettes to be introduced to the system without the need for rewriting any code.

A Cashier profile represents a description of how WebSphere Commerce Payments orders should be created for a particular payment method. Profiles are XML documents that contain all the information needed by the Cashier to create WebSphere Commerce Payments API requests to create orders for a cassette supporting that payment method. All profiles must include the following data:

In addition, profiles may also contain the following optional data:

Cashier profiles allow parameter values to be specified in four different ways:

  1. Hard-coded as constants in the profile

  2. Passed as an environment variable on the CollectPayment() call

  3. Specified as originating from a relational database field

  4. Specified as being calculated by Cashier extension code

The following are the CustomOffline Cassette Cashier profiles:

Cashier profile file name Function
WC51_CustomOfflineBillMe.profile Uses full AVS information. Collects shipping and delivery address information.
WC51_CustomOfflineCOD.profile Collects delivery address information.
SampleCheckoutCustomOfflineBillMe.profile Uses full AVS information. Collects shipping and delivery address information for Sample Checkout.
SampleCheckoutCustomOfflineCOD.profile Collects delivery address information for Sample Checkout.

Initially, the CustomOffline Cassette Cashier Sample Checkout profile is in the following directory:

Payments_installdir/cassettes/CustomOffline/SampleCheckout/profiles

When the cassette is added to an instance, the file is copied to the following directory:

Payments_installdir/wc.mpf.ear/SampleCheckout.war/profiles

To change the profile for an instance, change the profile located...

WAS_HOME/installedApps/node_name/payments_instance_Commerce_Payments_App.ear/SampleCheckout.war/profiles

Do not change the profile in the Payments_installdir/wc.mpf.ear/SampleCheckout.war/profiles directory for a given instance. Changes made to the profile in this location will affect all Payments instances.


Related concepts

OfflineCard Cassette


+

Search Tips   |   Advanced Search