Table of Contents

Class StoreIds

Namespace
VpnHood.AppLib.Abstractions.Billing
Assembly
VpnHood.AppLib.Abstractions.dll

Well-known store ids — the billing counterpart of AuthProviders, and the same kind of contract: a free-form lowercase STRING self-declared by the app's IBillingProvider, deliberately not an enum, so a third-party store can introduce its own id without a change to this library.

The id is consumed verbatim by the account backend: it selects which app row a purchase belongs to, which store API re-verifies the proof, and which subscriptions this device may manage. Changing one is a breaking change on the wire.

public static class StoreIds
Inheritance
StoreIds
Inherited Members

Fields

AppStore

Apple's App Store: appstore.

public const string AppStore = "appstore"

Field Value

string

GooglePlay

Google Play: googleplay.

public const string GooglePlay = "googleplay"

Field Value

string

Microsoft

The Microsoft Store: microsoft.

public const string Microsoft = "microsoft"

Field Value

string

Web

The direct-download distribution channel, which sells on the website: the web billing provider carries this id. It names the backend's app registration for such builds, and the backend serves priced web plans (checkout on the website) only to apps registered under it.

public const string Web = "web"

Field Value

string