StorePurchaseProperties StorePurchaseProperties StorePurchaseProperties StorePurchaseProperties Class

Definition

Contains additional details that you can pass to a purchase request for a product, including the product name to display to the user during the purchase.

public : sealed class StorePurchaseProperties : IStorePurchasePropertiespublic sealed class StorePurchaseProperties : IStorePurchasePropertiesPublic NotInheritable Class StorePurchaseProperties Implements IStorePurchaseProperties// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Services.Store.StoreContract (introduced v1)

Remarks

The RequestPurchaseAsync methods of the StoreContext, StoreProduct, StoreSku, and StoreAvailability classes have overloads that accept an argument of this type.

Constructors

StorePurchaseProperties() StorePurchaseProperties() StorePurchaseProperties() StorePurchaseProperties()

Initializes a new instance of the StorePurchaseProperties class.

public : StorePurchaseProperties()public StorePurchaseProperties()Public Sub New()// You can use this method in JavaScript.
See Also

StorePurchaseProperties(String) StorePurchaseProperties(String) StorePurchaseProperties(String) StorePurchaseProperties(String)

Initializes a new instance of the StorePurchaseProperties class. This overload provides the option to specify the product name that is displayed to the user during the purchase.

public : StorePurchaseProperties(PlatForm::String name)public StorePurchaseProperties(String name)Public Sub New(name As String)// You can use this method in JavaScript.
Parameters
name
PlatForm::String String String String

The product name that is displayed to the user during the purchase.

Properties

ExtendedJsonData ExtendedJsonData ExtendedJsonData ExtendedJsonData

Gets or sets a JSON-formatted string that contains extended data to pass with the purchase request to the Windows Store.

public : PlatForm::String ExtendedJsonData { get; set; }public string ExtendedJsonData { get; set; }Public ReadWrite Property ExtendedJsonData As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

A JSON-formatted string that contains extended data to pass with the purchase request to the Windows Store.

Remarks

Use the ExtendedJsonData property to access the complete data for the StorePurchaseProperties object as a JSON-formatted string in your code. For more information about the structure of the data, see Data schemas for Store products.

If you want to associate the purchase request with a custom campaign, you can add a field named DevOfferId to the JSON string that is returned by this property and then assign the updated string to this property. You can then retrieve this value later by accessing the DeveloperOfferId property of a StoreCollectionData object. Here is an example JSON string that includes a DevOfferId field: "{\"DevOfferId\": \"your campaign ID\" }".

See Also

Name Name Name Name

Gets or sets the product name that is displayed to the user during the purchase. The specified name appears in the title bar of the purchase UI.

public : PlatForm::String Name { get; set; }public string Name { get; set; }Public ReadWrite Property Name As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The product name that is displayed to the user during the purchase.