Introduction #
In-app purchases let you monetize your content by offering paid courses, memberships, or access tiers directly inside the Learndash App.
This guide walks you through enabling in-app purchases, configuring product settings, syncing with app stores, organizing subscriptions, and testing transactions.
Enable In-App Purchases in Your Learndash App #
- In your WordPress Dashboard, go to Learndash App > Components.
- Toggle on In-App Purchases.
- Click Save Changes.
Configure In-App Purchase Settings #
- Navigate to Learndash App > Settings > In-App Purchases.
- Require Purchase – Check this to block all content until the user purchases a product.
- Under Terms of Service and Privacy Policy, select the appropriate WordPress pages.
- Scroll to Products Screen and enter a custom Sales Message (e.g., “Choose your plan to unlock access”).
- Click Save Changes.
Add the Products Screen to Your App Menu #
- Go to Learndash App > Menus.
- Under the Learndash App, find Products.
- Click Add to Menu under either Tab Bar Menu or More Screen Menu.
- Click Save Menu.
Create and Sync In-App Products #
- Navigate to Learndash App > In-App Purchases > Products.
- Click Add New and fill in:
- Product Name (match the name used in App Store Connect and Google Play Console)
- Tagline (optional)
- Description (optional)
- Benefits – Short bullet points (e.g., ✓ Access to all lessons)
- Product Name (match the name used in App Store Connect and Google Play Console)
- Display on Products Screen – Check if it should appear in the Products Screen.
- Under Product Type, select Paid or Free.
Syncing with Apple #
- Check Enable under iOS Store, then click Sync with Apple.
- Select your product (must be at least “Ready to Submit”).
Syncing with Google Play #
- Check Enable under Android Store, then click Sync with Google.
- Select your product (must be Active in Google Play Console).
Integration Type #
Choose one:
- LearnDash Course – Only courses marked Closed, Recurring, or Buy Now are eligible.
- Membership – Select a supported membership plugin.
- Click Publish to save the product.
Organize Subscription Groups #
- In App Store Connect, create a Subscription Group under Features > Subscriptions.
- Copy the group name.
- In WordPress, go to Learndash App > In-App Purchases > Subscription Groups.
- Click Add New, paste the group name, and click Save.
- Edit each related product and assign it to this subscription group.
Reorder Products #
- Navigate to Learndash App > In-App Purchases > Products.
- Drag and drop the products to reorder them (e.g., Free > Basic > Premium).
- This order reflects in the Products Screen and purchase modals.
Test Purchases in the Test App #
- Install your Test App on a device.
- Log in with any user (if Require Purchase is enabled, they’ll be redirected).
- Tap View on a product – Test Apps treat paid items as free.
- Confirm access to the linked course or membership.
- Go to Transactions and check for entries marked (Test App).
- Use Revoke to reset access and retest.
Test Purchases in the Release App #
iOS (TestFlight) #
- Download your IPA file from Build History.
- Upload to TestFlight and invite testers.
- Test in-app purchases without being charged.
Android (Internal Testing) #
- Upload the APK to a Google Play Console testing track.
- Invite testers and install using the testing URL.
- Complete purchase flows using Google’s billing system (no real charges for test users).
Manage Transactions #
Go to Learndash App > In-App Purchases > Transactions to:
- View all purchases (Test and Release Apps)
- Revoke test purchases (safe to reset access)
- Revoke release purchases only if necessary (removes access but doesn’t issue a refund)
Note: Refunds must be issued directly through Apple or Google Play.
Troubleshooting and FAQs #
Q: Why aren’t my products showing in the app?
A: Ensure each product is synced and has Approved (Apple) or Active (Google) status.
Q: I updated the pricing in the app stores, but it’s not reflected.
A: Click Sync again and force-close the app to refresh product data.
Q: Revoke isn’t resetting Test App purchases.
A: Make sure you used the Revoke button under Transactions, then relaunch the Test App.
Q: Members are subscribing to multiple plans.
A: Check that all subscription products are correctly assigned to a Subscription Group.
Q: Can I offer a free product as part of the Products Screen?
A: Yes. Mark it as Free and integrate it with a LearnDash course or membership.