In-app purchases testing ensures transaction completion, accurate pricing display, and correct access unlocking before public release. Testing occurs through Test App builds and Release builds using TestFlight and Google Internal Testing. This document explains how to test purchases in both testing environments.
Understanding Testing Requirements
In-app purchase testing requires proper product configuration and build availability before testing can begin.
All in-app products must be configured and synced in Apple and Google developer accounts. Products must be added in Dashboard > MemberPress App > In-App Purchases > Products. App builds must be generated and available for testing deployment.
Testing Purchases in Test App Builds
Test App builds simulate purchases without connecting to actual app stores.
Understanding Test App Behavior
Test Apps display specific product information based on product type.
Free products display correct labels, including “Gratuit" et "Durée de vie” access indicators. Label accuracy confirms proper product configuration.
Paid products show generic “Prix” labels with explanatory notes. The note states, “Pricing and terms are only available in Release Apps” due to the absence of a store connection.
Understanding Test App Purchase Simulation
Test App purchases simulate transactions without processing real payments.
All purchases are completed automatically without requiring payment information. The app enrolls users as if transactions succeeded with real payment processing.
No actual pricing displays for paid products. Store connection absence prevents real price retrieval from Apple or Google.
Using Test App Builds Effectively
Test App builds verify product functionality without store connection delays.
- Installer le Test App build on a testing device.
- Navigate to the products screen within the app.
- Verify product labels display correctly for free products.
- Confirm paid products show generic price placeholders.
- Complete a test purchase by tapping a product.
- Verify automatic enrollment occurs without payment processing.
- Naviguez jusqu'à Dashboard > MemberPress App > In-App Purchases > Transactions.
- Confirm that transaction logging records the simulated purchase.
- Test multiple products to verify correct enrollment mapping.
- Verify membership or content access unlocks as expected.
Test App builds enable rapid testing without App Store Connect or Play Console approval delays.
Testing Purchases in Release Builds
Release builds test complete purchase flows with real store interfaces and local pricing display.
Testing iOS Purchases with TestFlight
TestFlight enables iOS purchase testing with Apple's real purchase interface without charges.
- Naviguez jusqu'à Dashboard > MemberPress App > Build History.
- Locate the desired iOS Release build.
- Télécharger le IPA file to a local device.
- Log in to App Store Connect à appstoreconnect.apple.com.
- Naviguez jusqu'à TestFlight in the app section.
- Upload the downloaded IPA file to TestFlight.
- Wait for processing to complete.
- Cliquez sur Add Testers under internal or external testing.
- Enter tester Apple ID email addresses.
- Send testing invitations to testers.
- Testers install the TestFlight app on iOS devices.
- Testers accept the invitation and install the test app.
- Testers navigate to products within the test app.
- Verify products display with real pricing in local currency.
- Complete test purchases using Apple's real purchase UI.
- Confirm the purchase process in sandbox mode without billing.
- Verify membership or content access unlocks correctly after purchase.
TestFlight sandbox mode processes purchases through Apple's real interface without charging actual payment methods.
Testing Android Purchases with Internal Testing
Internal Testing enables Android purchase testing with Google Play's real purchase interface without charges.
- Naviguez jusqu'à Dashboard > MemberPress App > Build History.
- Locate the desired Android Release build.
- Download the APK file to a local device.
- Log in to Google Play Console at play.google.com/console.
- Naviguez jusqu'à Testing > Internal testing in the app section.
- Cliquez sur Create new release or upload to existing release.
- Upload the downloaded APK file.
- Complete release notes and configuration.
- Cliquez sur Review release et ensuite Start rollout to Internal testing.
- Wait for approval to complete.
- Naviguez jusqu'à la page Testers tab under Internal testing.
- Add tester email addresses for Google accounts.
- Copy the install link provided by Play Console.
- Send the install link to testers.
- Testers open the link on Android devices and install the app.
- Testers navigate to products within the test app.
- Verify products display with real pricing in local currency.
- Complete test purchases using Google Play's native purchase dialogs.
- Confirm the purchase process in testing mode without billing.
- Verify membership or content access unlocks correctly after purchase.
Internal Testing processes purchases through Google Play's real interface without charging actual payment methods.
Verifying Transaction Logging
Transaction logging verification confirms proper purchase recording in WordPress.
- Complete a test purchase in either the Test App or the Release build.
- Naviguez jusqu'à Dashboard > MP App > In-App Purchases > Transactions.
- Locate the test transaction in the transactions list.
- Verify transaction details display correctly, including:
- Product name and identifier;
- Purchase date and time;
- User account information;
- Transaction status.
- Confirm transaction status shows as completed or an appropriate status.
- Verify membership enrollment or content access grants correctly.
Proper transaction logging confirms that purchase processing and enrollment functionality work correctly.