In-app purchase

The In-App Purchase (IAP) integration enables seamless payment handling via the Google Play Store (Android) and Apple App Store (iOS) within Shopify.

Shopify In-App Purchase (IAP) Installation & Setup Guide

Step 1: Configure IAP Settings for Products

Shopify store admins need to configure in-app purchase settings when updating a product. Follow these steps:

  1. Navigate to the Products section in your Shopify admin.

  2. Open the product you want to enable IAP for.

  3. Add the In-App Purchase Settings block.

  1. Fill in the following details:

  • Google Play Product ID

  • App Store Product ID

  • Product Type

  • Is Consumable? (Checkbox)

  1. Save the product settings.

Step 2: Enable the In-App Purchase Block in the Shopify Theme

To allow in-app purchases, enable the IAP block in your Shopify theme:

  1. Go to Online Store > Themes in your Shopify admin.

  2. Click Customize next to your current theme.

  3. Navigate to the App Embeds section.

  4. Enable the In-App Purchase block.

  5. Save your changes.

Step 3: Configure In-App Purchase Settings in the Installed App

After installing the app, follow these steps to configure IAP settings:

  1. Navigate to the Apps section in your Shopify admin.

  2. Open the installed app.

  3. Locate and click on In-App Purchase Settings.

  1. Configure the necessary settings:

  • Enable In-App Purchases

  • Is Test Mode?

  • Enter iOS Secret (If you configure IAP in iOS devices)

  1. Click Save to apply the settings.

Step 4: Initiate In-App Purchase on the Product Detail Page

Once IAP is configured for a product, the purchase process is initiated on the product detail page:

  1. Navigate to the product detail page in your Shopify store.

  1. If IAP is configured for the selected product:

  • The "Buy Now" button will override Shopify’s default Buy Now and Add to Cart sections.

  • Customers will proceed with an in-app purchase instead of using the standard checkout flow.

  1. Complete the in-app purchase transaction.

Step 5: Order Creation After Successful Purchase

After successfully purchasing an IAP product:

  1. An order will be created in Shopify.

  1. The order Note section will contain:

  • The native product ID.

  • The platform type (iOS or Android).

Additional Notes:

  • The IAP feature is available only for supported Shopify plans.

  • Only Logged-in users can use the IAP feature.

  • The in-app purchase "Buy Now" button is only visible on native devices.

  • Ensure that your Google Play and App Store product IDs match the ones configured in your app.

  • If your plan does not support IAP, you may see an upgrade prompt.

Once these steps are completed, your Shopify store will be ready to process in-app purchases seamlessly!

Last updated

Was this helpful?