Table of Contents

Enum BillingErrorCode

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

The store-agnostic vocabulary for billing failures. Providers translate their store's own error codes into these; the UI branches on nothing finer. Anything a store can say that has no user-meaningful bucket here is Unknown — the store's own message still travels with the exception for display and logs, it just never becomes a branch.

public enum BillingErrorCode

Fields

Unknown = 0

A failure with no bucket of its own; the store's message goes with it.

Cancelled = 1

The person closed the store's payment flow; not an error to show.

Pending = 2

The store accepted the order but the payment has not settled yet.

Unavailable = 3

Billing does not work on this device or store account at all (unsupported device/region, store app missing or outdated, policy restriction).

NetworkError = 4

Transient trouble reaching the store's billing service; retrying can help.

ProductUnavailable = 5

The chosen product cannot be bought right now (not in this store/region).

AlreadyOwned = 6

The store account already owns this subscription.

NotOwned = 7

The store account owns no such purchase.