<!--
{
  "documentType" : "article",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/testing-promoted-in-app-purchases",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "Testing promoted In-App Purchases"
}
-->

# Testing promoted In-App Purchases

Test your In-App Purchases before making your app available in the App Store.

## Discussion

Users can buy promoted In-App Purchases from the App Store, but you need to test this flow before making your product publicly available. Apple provides a system URL that triggers your app using the `itms-services://` protocol, so you can test In-App Purchases before they’re available in the App Store.

|**Protocol**                     |`itms-services://`                                                                             |
|---------------------------------|-----------------------------------------------------------------------------------------------|
|**Parameter** `action`           |`purchaseIntent`                                                                               |
|**Parameter** `bundleId`         |The bundle ID for your app; for example: ![](spacer) `com.example.app`                         |
|**Parameter** `productIdentifier`|The In-App Purchase product ID you want to test; for example: ![](spacer) `com.example.product`|

The resulting URL looks like this:

`itms-services://?action=purchaseIntent&bundleId=com.example.app&productIdentifier=com.example.product`

Send this URL to yourself in an email or iMessage, and open it from your device. You’ll know the test is running when your app opens automatically. You can then test how your app handles the promoted In-App Purchase.

---

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)