Partager via


XStoreSubscriptionInfo

Contains information on a subscription.

Syntax

typedef struct XStoreSubscriptionInfo {  
    bool hasTrialPeriod;  
    XStoreDurationUnit trialPeriodUnit;  
    uint32_t trialPeriod;  
    XStoreDurationUnit billingPeriodUnit;  
    uint32_t billingPeriod;  
} XStoreSubscriptionInfo  

Members

hasTrialPeriod
Type: bool

Indicates whether the subscription has a trial period.

trialPeriodUnit
Type: XStoreDurationUnit

The trial period unit type.

trialPeriod
Type: uint32_t

The trial length period.

billingPeriodUnit
Type: XStoreDurationUnit

The billing period unit type.

billingPeriod
Type: uint32_t

The billing period for the subscription.

Remarks

Subscriptions are created and configured in Partner Center. Each subscription type offered for your game requires a separate subscription configuration. XStoreSubscriptionInfo is a member of the XStoreSku struct.

Requirements

Header: XStore.h (included in XGameRuntime.h)

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

XStore
XStoreSku