Method Purchase Purchase(string) Purchases a product. Declaration void Purchase(string productId) Parameters Type Name Description string productId The ID product to be purchased.