Contents

Testing promoted Apple In-App Purchases

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

Overview

Users can buy promoted Apple 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 Apple 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: [Image] com.example.app

Parameter productIdentifier

The Apple In-App Purchase product ID you want to test; for example: [Image] 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 Apple In-App Purchase.

See Also

Promoted Apple In-App Purchases