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
Shopify store admins need to configure in-app purchase settings when updating a product. Follow these steps:
Navigate to the Products section in your Shopify admin.
Open the product you want to enable IAP for.
Add the In-App Purchase Settings block.
Fill in the following details:
Is Consumable? (Checkbox)
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:
Go to Online Store > Themes in your Shopify admin.
Click Customize next to your current theme.
Navigate to the App Embeds section.
Enable the In-App Purchase block.
After installing the app, follow these steps to configure IAP settings:
Navigate to the Apps section in your Shopify admin.
Locate and click on In-App Purchase Settings.
Configure the necessary settings:
Enter iOS Secret (If you configure IAP in iOS devices)
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:
Navigate to the product detail page in your Shopify store.
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.
Complete the in-app purchase transaction.
Step 5: Order Creation After Successful Purchase
After successfully purchasing an IAP product:
An order will be created in Shopify.
The order Note section will contain:
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