<!--
{
  "documentType" : "article",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/testing-invalid-product-identifier-handling",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "Testing invalid product identifier handling"
}
-->

# Testing invalid product identifier handling

Verify that your app correctly handles invalid product identifiers.

## Discussion

Intentionally include an invalid identifier in your app’s list of product identifiers. Then do one of the following:

- In a production build, verify that the app displays the rest of its store UI and that users can purchase the valid products.
- In a development build, verify that the app brings the issue to your attention.

Check the console log and verify that you can correctly identify the invalid product identifier. Make sure you remove it after testing.

For more information on fetching product identifiers, see [Loading in-app product identifiers](/documentation/StoreKit/loading-in-app-product-identifiers).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)