How do do in app purchases

Asked on 06/17/2025

1 search

To implement in-app purchases, you can leverage several tools and APIs provided by Apple. Here's a brief overview of the process and some resources from WWDC sessions that can help you:

  1. StoreKit: This is the primary framework for implementing in-app purchases within your app. It allows you to handle transactions, manage product information, and more. You can learn about the latest updates in StoreKit from the session What’s new in StoreKit and In-App Purchase.

  2. App Store Server APIs: These APIs allow your server to interact with the App Store to manage transactions, handle refunds, and more. The session Explore App Store server APIs for In-App Purchase provides insights into the purchase lifecycle and how to deliver content effectively.

  3. Signing Requests: To ensure secure transactions, you can sign your in-app purchase requests using the App Store Server Library. This is covered in the session Dive into App Store server APIs for In-App Purchase.

  4. Testing: You can test your in-app purchase flows using Xcode. The session What’s new in StoreKit and In-App Purchase discusses how to test purchase intents and other features in Xcode.

  5. Promotional Offers: You can create promotional offers for subscriptions using the new JWS-based Subscription Promotion Offer modifier. This is detailed in the session What’s new in StoreKit and In-App Purchase.

These resources should provide a comprehensive guide to implementing and managing in-app purchases in your app.

Explore App Store server APIs for In-App Purchase

Explore App Store server APIs for In-App Purchase

Learn how to leverage your server to build great In-App Purchase experiences with the latest updates to the App Store Server API, App Store Server Notifications, and the open source App Store Server Library. After a recap of current APIs, we’ll introduce updated endpoint functionality, new transaction fields, and a new notification type. We’ll also discuss best practices for the purchase lifecycle, delivering content, and targeting offers, so you can become a server power user.

Dive into App Store server APIs for In-App Purchase

Dive into App Store server APIs for In-App Purchase

Discover the latest updates for the App Store Server API, App Store Server Notifications, and App Store Server Library to help manage customer purchase data directly on your server and deliver great In-App Purchase experiences. We’ll cover updates to appAccountToken and signature signing, new fields in signed transaction and renewal info, and new APIs. Then, we’ll show how to generate a promotional offer signature on your server, and how to use the Send Consumption Information endpoint.

What’s new in StoreKit and In-App Purchase

What’s new in StoreKit and In-App Purchase

Learn about the latest StoreKit API enhancements to help you deliver great In-App Purchase experiences to your customers. We’ll review new fields added to AppTransaction, Transaction, and RenewalInfo, and updates to In-App Purchase offer codes. We’ll also cover creating signed In-App Purchase requests using the App Store Server Library and updates to merchandising subscriptions using SwiftUI.