Lens Scripting API
    Preparing search index...

    Enumeration PurchaseStateWearable Only

    Represents the state of a purchase in a Lens.

    Index

    Enumeration Members

    Enumeration Members

    Invalidated: number

    The purchase has been invalidated, meaning it is no longer considered active or valid. This can happen for several reasons, such as a refund being issued for the purchase, or other system-level invalidations. When a purchase is invalidated, the user should no longer have access to the associated product or feature.

    Pending: number

    The purchase is currently in a state of waiting for further action or confirmation. This might occur if the transaction requires additional verification, if there's a delay in payment processing, or for certain types of payment methods. The purchase is not yet finalized, and the user may not have access to the item until its state changes to Purchased. You should monitor for updates to this purchase through the ClientOptions.onPurchasesUpdated.

    Purchased: number

    The product has been successfully bought and the transaction is complete. At this state, the user should have access to the purchased item or feature.

    Unset: number

    The product is not currently in the user's purchase history, meaning it has not been purchased or is no longer considered owned. For items that should be owned, this typically means the user has not yet acquired it.