Godot Google Play Billing Demo is a showcase application designed to test and demonstrate the integration of the AndroidIAPP in-app purchase plugin for Godot 4.x games and applications[cite: 1, 2].

This app demonstrates the complete workflow for Google Play Billing API v8.3.0, including one-time purchases, offer tokens/discounts, non-consumables, and multi-plan subscriptions[cite: 1, 2].



🧪 Test In-App Products

The demo app includes the following pre-configured items to verify standard Billing API scenarios[cite: 1, 2]:

1. Consumable Products (In-App Purchases)

Items that can be purchased multiple times (e.g., in-game currency)[cite: 1, 2]:

  • 100 Gold Coins (gold_100) — $0.99
    Small consumable pack for basic purchase and consumption flow testing.[cite: 1, 2]
  • 500 Gold Coins (Offer) (gold_500_discount) — $3.99
    Medium consumable pack used for testing purchases with custom offer tokens (discounts).[cite: 1, 2]

2. Non-Consumable Products (Acknowledged)

One-time purchases permanently bound to the user’s account[cite: 1, 2]:

  • Starter Pack (starter_bundle) — $2.99
    One-time purchase starter kit.[cite: 1, 2]
  • Pro Features Pack (pro_features_pack) — $4.99
    Unlocks permanent pro tools and features.[cite: 1, 2]

3. Subscriptions (Acknowledged)

Recurring auto-renewing plans built on Google Play Base Plans[cite: 1, 2]:

  • No Ads Subscription (no_ads_sub)
    • Base Plan ID: monthly-plan
    • Period: 1 Month (Auto-renewing)
    • Price: $0.99 / month[cite: 1]
  • VIP Pass (premium_sub)
    • Base Plan ID: monthly-plan
    • Period: 1 Month (Auto-renewing)
    • Price: $1.99 / month[cite: 1]

🛠 Technical Features

  • Built with Godot 4.x utilizing strict static typing in GDScript 2.0[cite: 1].
  • Full support for purchase validation and confirmation (Acknowledge / Consume)[cite: 1].
  • Comprehensive handling of errors, connection states, and user cancellations[cite: 1].