Store events listener

interface When {
    approved(cb, callbackName?): When;
    finished(cb, callbackName?): When;
    initiated(cb, callbackName?): When;
    pending(cb, callbackName?): When;
    productUpdated(cb, callbackName?): When;
    receiptUpdated(cb, callbackName?): When;
    receiptsReady(cb, callbackName?): When;
    receiptsVerified(cb, callbackName?): When;
    unverified(cb, callbackName?): When;
    updated(cb, callbackName?): When;
    verified(cb, callbackName?): When;
}

Methods

  • Register a function called when a product is updated.

    Parameters

    Returns When

  • Register a function called when a receipt is updated.

    Parameters

    Returns When

  • Register a function called when all receipts have been loaded.

    This handler is called only once. Use this when you want to run some code at startup after all the local receipts have been loaded, for example to process the initial ownership status of your products. When you have a receipt validation server in place, a better option is to use the sister method "receiptsVerified".

    If no platforms have any receipts (the user made no purchase), this will also get called.

    Parameters

    • cb: Callback<void>
    • Optional callbackName: string

    Returns When

  • Register a function called when all receipts have been verified.

    If no platforms have any receipts (user made no purchase), this will also get called.

    Parameters

    • cb: Callback<void>
    • Optional callbackName: string

    Returns When

  • Register a function called when a receipt failed validation.

    Parameters

    Returns When

  • Register a function called when a product or receipt is updated.

    Parameters

    Returns When

    Deprecated

    • Use productUpdated or receiptUpdated.
  • Register a function called when a receipt is verified.

    Parameters

    Returns When