Google enforces strict policies requiring apps distributed via Google Play to use the Google Play Billing system for digital goods, game currency, feature unlocks, and subscriptions. Implementing this natively in Android Studio requires handling complex lifecycle states, purchase tokens, asynchronous billing client connections, and verification.

The Play Billing Ultra extension (.aix) packages Google's official Android Billing Client (v7.1.1 up to v9.x) into intuitive, high-level visual blocks for Kodular and MIT App Inventor.

Play Billing Ultra (.aix) — 100% Free Gift

Free Special Gift • Version 1.0 • Regular Price: $12 (FREE)

🎁 Claim & Download Free (.aix)

1. Core Capabilities

2. Google Play Console Configuration

  1. Upload an initial signed AAB build of your app containing the Play Billing permission in the Google Play Console Internal Testing track.
  2. In Google Play Console, go to Monetize > In-app products.
  3. Click Create product and create a Product ID (e.g. remove_ads_lifetime). Set your pricing and activate the item.
  4. For recurring plans, visit Subscriptions, add a base plan (e.g. vip_monthly), and set renewal cycles.

3. Step-by-Step Block Logic

Step 3.1: Initialize Billing Connection

Always connect to the Google Play Billing service when the screen initializes. Never attempt to query or launch purchase flows before the connection is established:

when Screen1.Initialize do: call PlayBillingUltra.InitializeConnection( licenseBase64Key: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA..." ) when PlayBillingUltra.OnBillingServiceConnected do: // Billing client is ready! Query active user purchases call PlayBillingUltra.QueryPurchases()

Step 3.2: Query Existing Entitlements (Restore Purchases)

when PlayBillingUltra.OnPurchasesQueried(purchasesList, isSuccess) do: if isSuccess then: if purchasesList.contains("remove_ads_lifetime") then: set BannerAd1.Visible to false call TinyDB1.StoreValue("AdsRemoved", true)

Step 3.3: Launching Purchase Flow

When the user taps the "Unlock Premium" button, call LaunchPurchaseFlow with the product ID:

when Button_UnlockPremium.Click do: call PlayBillingUltra.LaunchPurchaseFlow( productId: "remove_ads_lifetime", productType: "inapp" // or "subs" for subscriptions )

Step 3.4: Handling Purchase Success & Automatic Acknowledge

when PlayBillingUltra.OnPurchaseSuccess(productId, orderId, purchaseToken) do: // Automatically acknowledge to prevent Google refund call PlayBillingUltra.AcknowledgePurchase(purchaseToken) // Unlock user features call TinyDB1.StoreValue("IsVip", true) call Notifier1.ShowAlert("Success! Welcome to VIP membership.")

4. Troubleshooting Common Play Billing Errors

Error: "The item you requested is not available for purchase": This occurs if:

Conclusion

Google Play Billing Ultra provides an effortless way to monetize your Kodular apps with international users. Download it for free on AIX Hub Store today and start earning worldwide revenue!