UnfetchedProduct.StatusCode

@Retention(value = java.lang.annotation.RetentionPolicy.SOURCE)
public annotation UnfetchedProduct.StatusCode


Possible Status codes.

Summary

Constants

static final int

Invalid product id format.

static final int

Product is found but no eligible offer is found.

static final int

Product is not found.

static final int

Unknown status code.

Constants

INVALID_PRODUCT_ID_FORMAT

public static final int INVALID_PRODUCT_ID_FORMAT = 2

Invalid product id format.

For subscription product id format, please refer to https://support.google.com/googleplay/android-developer/answer/140504

For one time product product id format, please refer to https://support.google.com/googleplay/android-developer/answer/1153481

NO_ELIGIBLE_OFFER

public static final int NO_ELIGIBLE_OFFER = 4

Product is found but no eligible offer is found.

Examples where this status code may occur:

  • For subscription, no base plan is available.
  • For one time product, no purchase option offer is available.

PRODUCT_NOT_FOUND

public static final int PRODUCT_NOT_FOUND = 3

Product is not found.

Examples where this status code may occur:

  • The product has been deleted or never been created.
  • The product type is incorrect.
  • The product is just created but not fully propagated yet. Please try again later.

UNKNOWN

public static final int UNKNOWN = 0

Unknown status code.