Share via


SaveReceipt

Use this component to save an order in a database table.

Intended use: Order Processing pipeline, Accept stage.

Configuration Values

You can determine which items the SaveReceipt component will save in the database by setting component properties. Use the following boxes on the Save Receipt tab of the Component Properties dialog box to determine this information.

Box Description
No Save Key Prefix A prefix that identifies keys in the order form that should not be saved in the database table. Use this prefix to identify sensitive information such as credit-card numbers that should not be saved. The default prefix is _cc_.

Values Read

The SaveReceipt component reads the following values from the indicated dictionaries.

Key Dictionary Description
ReceiptStorage Context A reference to a DBStorage object pointing to a database in which to save the data.
<Various Fields> Order The SaveReceipt component saves all fields in the order form that have a corresponding name in the database table and that do not begin with the characters specified in the NoSaveKeyPrefix box.

Values Written

None.

Remarks

The SaveReceipt component saves an order to a database table. The name of the database table is stored in the DBStorage object. The Context dictionary key ReceiptStorage points to the object. The SaveReceipt component saves all fields on the order form that have a corresponding column name in the database table.

See Also

DBStorage Object


All rights reserved.