/In-App-Purchase---iOS

A simple In-App Purchase example that handles an In-App purchase, and restoring a product.

Primary LanguageSwift

In-App Purchase - iOS

A simple In-App Purchase example that handles an In-App purchase, and restoring a product.

Make sure to read Apple's In-App Purchase documentation and use a sandbox test user to test in-app purchase, not your actual App store credentials.

Test In-App Purchase on device, since it does not work on the iOS Simulator.

Preview

Purchase:

Restore:

Follow these steps to enable In-App Purchase:

  • The Certificates, Identifiers & Profiles section of Apple Developer Account is used to configure your App ID and Provisioning Profiles for in-app purchase.

Apple Developer Account

  • Enable In-App Purchase in Capabilities pane in the project editor for your target.

Capabilities pane

  • To test in-app purchase, you need to create products to purchase and test accounts to make the purchases. iTunes Connect allows you to create and manage in-app purchases and test user accounts.

iTunesConnect