Purchase intents

Track purchases from "user tapped subscribe" to "subscription created."

View purchase intents

In the PurchaseKit dashboard:

  1. Go to your app
  2. Select a product
  3. Click Purchase intents

You'll see all intents with their status:

  • Pending - Waiting for store webhook
  • Completed - Subscription created successfully

Manually complete an intent

For sandbox testing, you can manually complete a pending intent:

  1. Find the pending intent in the dashboard
  2. Click Complete

This simulates receiving a webhook from the app store and triggers your Rails app's webhook handler. The user will be redirected to their success path.

Note: Manual completion is only available for sandbox intents. Production intents must come from real Apple or Google webhooks.

Intent fields

Field Description
identifier Public ID (e.g., pi_QCCWGR8F)
uuid Correlation ID sent to the store (Apple's appAccountToken or Google's obfuscatedAccountId)
customer_id Your Pay::Customer ID
success_path Redirect destination after purchase
status pending or completed
environment sandbox, production, or xcode