Lens Scripting API
    Preparing search index...

    Class PurchaseResultWearable Only

    Provides an immediate summary of the outcome of a purchase attempt. It indicates whether the transaction was successful, canceled by the user, or if an error occurred. This is the first place to look to understand the immediate result of a purchase flow.

    Hierarchy (View Summary)

    Index

    Properties

    debugMessage: string

    If there was an issue with your purchase, this message provides more specific information to help you understand what happened. Its useful for troubleshooting and diagnosing problems that might occur during the purchase process.

    responseCode: ResponseCode

    Tells you if the purchase was successful or if something went wrong. It's like a signal that gives you an immediate update on the transaction's outcome.

    Methods

    • Returns true if the object matches or derives from the passed in type.

      Parameters

      • type: string

      Returns boolean

    • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

      Parameters

      Returns boolean