PurchaseResults PurchaseResults PurchaseResults PurchaseResults Class

Definition

Contains information detailing the results of an in-app product purchase transaction.

public : sealed class PurchaseResults : IPurchaseResults
public sealed class PurchaseResults : IPurchaseResults
Public NotInheritable Class PurchaseResults Implements IPurchaseResults
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

OfferId OfferId OfferId OfferId

A unique ID used to identify a specific in-app product within a large catalog.

public : Platform::String OfferId { get; }
public string OfferId { get; }
Public ReadOnly Property OfferId As string
var string = purchaseResults.offerId;
Value
Platform::String string string string

Unique string used to identify a particular in-app product with a large catalog.

ReceiptXml ReceiptXml ReceiptXml ReceiptXml

A full receipt that provides a transaction history for the purchase of an in-app product.

public : Platform::String ReceiptXml { get; }
public string ReceiptXml { get; }
Public ReadOnly Property ReceiptXml As string
var string = purchaseResults.receiptXml;
Value
Platform::String string string string

An XML-formatted string.

Remarks

For information about the contents of the receipt, see Using receipts to verify product purchases.

Status Status Status Status

The current state of the purchase transaction for an in-app product.

public : ProductPurchaseStatus Status { get; }
public ProductPurchaseStatus Status { get; }
Public ReadOnly Property Status As ProductPurchaseStatus
var productPurchaseStatus = purchaseResults.status;

TransactionId TransactionId TransactionId TransactionId

A unique transaction ID associated with the purchase of a consumable in-app product.

public : Platform::Guid TransactionId { get; }
public Guid TransactionId { get; }
Public ReadOnly Property TransactionId As Guid
var guid = purchaseResults.transactionId;
Value
Platform::Guid Guid Guid Guid

A unique ID associated with a transaction.