How to Use Insert Affiliate with Iaptic
Insert Affiliate integrates with Iaptic to track affiliate-driven in-app purchases across iOS, Android, React Native, Flutter, and Unity. The setup takes about fifteen minutes: add your Iaptic credentials to Insert Affiliate, adjust one Iaptic dashboard setting, and install the appropriate SDK for your platform.
This guide walks through every step.
What Iaptic Does
Iaptic is a cross-platform receipt validation service for in-app purchases and subscriptions. It handles the complexity of verifying purchases against Apple App Store and Google Play APIs, so developers do not need to build and maintain their own server-side validation infrastructure.
When you pair Iaptic with Insert Affiliate, every validated purchase can be attributed to the affiliate who referred the user. Insert Affiliate pays affiliates cash commissions via Stripe, using either a flat-fee or revenue-share model that you configure per affiliate.
Prerequisites
Before starting, make sure you have:
- An active Insert Affiliate account at app.insertaffiliate.com
- An active Iaptic account at iaptic.com
- At least one in-app purchase or subscription product configured in Iaptic
- Your app project set up for iOS, Android, React Native, Flutter, or Unity
Step 1: Add Your Iaptic Credentials to Insert Affiliate
Open your Insert Affiliate Settings at app.insertaffiliate.com/settings. You need two values from your Iaptic account:
- Iaptic App Name: Find this at iaptic.com/account. It is the identifier Iaptic uses for your application.
- Iaptic Secret Key: Find this at iaptic.com/setting. This key authenticates Insert Affiliate's requests to the Iaptic validation API.
Paste both values into the corresponding fields in your Insert Affiliate settings and save.
Step 2: Set the Entitlement Strategy to First Claimer
This step is critical. On the Iaptic Dashboard, navigate to your entitlement strategy settings and change the strategy to First Claimer.
The First Claimer strategy ensures that each purchase is attributed to a single user and prevents duplicate transactions from appearing in your Insert Affiliate dashboard. Without this setting, the same purchase could be counted multiple times, leading to inaccurate commission calculations.
Step 3: Install the Insert Affiliate SDK
Insert Affiliate provides platform-specific SDKs that handle passing the affiliate identifier through to Iaptic purchase validation requests. Choose the SDK that matches your development platform.
iOS (Swift)
Install the Insert Affiliate Swift SDK from the GitHub repository at github.com/Insert-Affiliate/InsertAffiliateSwiftSDK. The repository includes detailed code examples for the Iaptic integration path specifically.
The key change: when your app sends a purchase validation request to Iaptic, the Insert Affiliate SDK attaches the affiliate identifier to that request. This is how Insert Affiliate knows which affiliate referred the purchasing user.
Android
Install the Insert Affiliate Android SDK from github.com/Insert-Affiliate/InsertAffiliateAndroidSDK. The Iaptic-specific setup instructions are documented in the repository under the Iaptic option.
The Android SDK works the same way: it injects the affiliate identifier into the purchase validation flow so that Iaptic-validated transactions are attributed to the correct affiliate.
React Native
Install the Insert Affiliate React Native SDK from github.com/Insert-Affiliate/InsertAffiliateReactNativeSDK. Since Iaptic also offers a React Native plugin (react-native-iaptic), this combination gives you a unified JavaScript API for purchases and affiliate tracking across both platforms.
Flutter
Install the Insert Affiliate Flutter SDK from github.com/Insert-Affiliate/insert_affiliate_flutter_sdk. Follow the Iaptic-specific integration steps in the repository documentation.
Unity
Install the Insert Affiliate Unity SDK from github.com/Insert-Affiliate/InsertAffiliateUnitySDK. The repository includes Iaptic-specific setup instructions with code examples.
How the Affiliate Identifier Flows Through Iaptic
Understanding the data flow helps with debugging and verification:
- A potential user clicks an affiliate's unique link and installs your app.
- The Insert Affiliate SDK captures the affiliate identifier from the deep link.
- When the user makes a purchase, your app sends a validation request to Iaptic.
- The Insert Affiliate SDK includes the affiliate identifier in that validation request.
- Iaptic validates the purchase against Apple or Google APIs and confirms it.
- Insert Affiliate records the validated purchase and attributes it to the referring affiliate.
- The affiliate earns a commission based on your configured flat-fee or revenue-share rate.
This entire process is automatic once the SDK is installed and your credentials are configured.
Commission Configuration
After setting up the integration, configure how affiliates earn commissions in your Insert Affiliate dashboard:
- Flat-fee commissions pay a fixed dollar amount per purchase (for example, $5.00 per subscription sign-up).
- Revenue-share commissions pay a percentage of each transaction (for example, 20% of the subscription price).
You can set different commission rates for different affiliates. All commissions are paid in cash via Stripe.
Affiliate Sign-Up
Affiliates sign up through Insert Affiliate's dedicated signup page, not inside your app. Once approved, each affiliate receives a unique tracking link. When users click that link and later make a purchase that Iaptic validates, the affiliate earns their commission automatically.
Testing Your Integration
After completing the setup, test the full flow:
- Create a test affiliate in your Insert Affiliate dashboard.
- Click the test affiliate's link on a device where your app is installed.
- Make a purchase within the app.
- Verify that the transaction appears in your Insert Affiliate dashboard with the correct affiliate attribution.
- Confirm the commission amount matches your configured rate.
Troubleshooting Common Issues
If transactions are not appearing in your Insert Affiliate dashboard:
- Verify that both the Iaptic App Name and Secret Key are entered correctly in your Insert Affiliate settings.
- Confirm the entitlement strategy in Iaptic is set to First Claimer.
- Check that the Insert Affiliate SDK is properly initialized in your app before any purchase flow begins.
- Make sure your deep linking is configured correctly so the affiliate identifier is captured when users open the app.
Summary
The Insert Affiliate and Iaptic integration connects affiliate tracking directly to validated in-app purchases. Configure your Iaptic credentials in Insert Affiliate settings, set the First Claimer entitlement strategy, install the platform SDK, and affiliate-referred purchases are automatically tracked and commissioned. The setup works across iOS, Android, React Native, Flutter, and Unity with dedicated SDKs for each platform.
