Jaa


Orders Example: Adding Virtual Gift Certificates

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

The topics in this section contain detailed instructions for how to add a collection of virtual gift certificates to an order.

For this example, assume that you want to allow a customer to pay for an order by using one or more virtual gift certificates. To implement this scenario, you define a class to represent a virtual gift certificate, define a class to represent the set of virtual gift certificates that were applied to the order, and then attach the set of gift certificates to the order. Because payments are associated with an order form, you store the set of gift certificates as a property of the OrderForm class.

You can find the VirtualGiftCertificate sample in the %COMMERCE_SERVER_ROOT%/SDK/Samples/OrdersExtensibility folder.

In This Section

See Also

Other Resources

Orders Extensibility Samples