Logo van Understanding Billing

Understanding Billing

Organisatie
RevenueCat
understanding-billing

Use this skill when a developer is new to Google Play Billing or needs to orient themselves before picking an implementation task. Maps their goal to the right pillar (Play Billing Library, Google Play Developer API, Play Console plus RTDNs) and routes them to the concrete skill to invoke next.

Add to TypingMind

Overzicht

UitgeverRevenueCat
Repositoryplay-billing-skills
Skillnaamunderstanding-billing
Sterren
58
Forks
0
Meegeleverde bestanden
Alleen instructies
LicentieApache-2.0
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door RevenueCat op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Understanding Billing in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/RevenueCat/play-billing-skills/tree/main/google-play/understanding-billing
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/RevenueCat/play-billing-skills.git /tmp/play-billing-skills
mkdir -p .claude/skills
cp -r /tmp/play-billing-skills/google-play/understanding-billing .claude/skills/understanding-billing
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Understanding Billing in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Understanding Billing automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Understanding Billing niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Phase 0: Intent

Tell the user: "I will orient you to Google Play Billing's three pillars, map your goal to the right pillar, and point you at the concrete skill to run next."

Phase 1: Discovery

Before touching code, confirm the developer understands the three pillars and the four actors. Each pillar owns a different slice of the system:

PillarSurfaceRole
Play Billing Library (PBL)Android client, Gradle dep com.android.billingclient:billing-ktxQuery products, launch purchase dialog, receive results on device
Google Play Developer APIServer REST API at androidpublisher.googleapis.comVerify purchases, manage subscriptions, manage catalog. Source of truth
Google Play ConsoleWeb dashboardCreate products, set prices, configure RTDNs and API access

A fourth piece, Cloud Pub/Sub, carries Real Time Developer Notifications (RTDNs) from Google to your backend when purchase or subscription state changes.

The four actors in every transaction:

ActorResponsibility
Your appQuery products, launch purchase flow, forward purchase tokens to backend
Google Play Store appHosts the billing service PBL connects to, renders the purchase dialog, and talks to Google's servers
Your backendVerify tokens against the Developer API, store entitlements, process RTDNs
Google Play serversProcess payments, run renewals and payment recovery, emit RTDNs

Ask the developer which of these surfaces they already have set up: Play Console account, service account credentials, Pub/Sub topic, backend, Android app.

Phase 2: Plan

Map the developer's goal to the pillar(s) they need, then to the next skill.

Developer goalPrimary pillarNext skill
First time onboarding, no account yetPlay Consolegoogle-play/setup
Show prices and launch a purchase from the appPBLgoogle-play/integrating-pbl
Verify a purchase token on the serverDeveloper APIgoogle-play/backend-architecture
Receive renewal and cancellation eventsRTDN plus Developer APIgoogle-play/rtdn
Create or edit products, base plans, offersPlay Console or catalog APIgoogle-play/catalog-management
Handle subscription lifecycle statesDeveloper API plus RTDNgoogle-play/subscription-states
Upgrade an existing PBL 7 or 8 integrationPBLgoogle-play/pbl-v7-to-v9-migration or google-play/pbl-v8-to-v9-migration
Offer alternative billing or external linksPBL plus Developer APIgoogle-play/alternative-billing

Decision notes and tradeoffs:

  • Treat the Developer API as the source of truth. PBL is convenience. Your backend should verify every purchase token before granting entitlements.
  • Acknowledge every purchase within 3 days. Unacknowledged purchases auto refund.
  • PBL feature availability depends on the Google Play Store app version on the device. Use isFeatureSupported() before calling feature specific APIs.
  • Subscriptions have a lifecycle (active, paused, grace period, on hold, canceled, expired). Plan for state handling on the server side, not just the app.
  • Entitlements are your problem. Google does not store what each user has access to.

Phase 3: Execute

This chapter is conceptual. There is no code to run here. Route the developer to the implementation skill that matches the goal you identified in Phase 2.

Core vocabulary the next skill will assume you know:

TermMeaning
Product ID (SKU)Unique string per product, for example premium_monthly. Cannot be reused after deletion
Purchase TokenGoogle generated string identifying a transaction. Primary key for server verification
Order IDFinancial transaction ID. Subscriptions append a sequence like GPA.1234-5678-9012..1 per renewal
EntitlementThe access you grant after verifying a purchase. You track this, not Google
AcknowledgementRequired confirmation within 3 days or Google refunds the purchase
ConsumptionMarks a consumable one time product as used so it can be bought again. Implicitly acknowledges
Base PlanA billing period plus price inside a subscription product
OfferPromotional phase on a base plan (trial, intro price). Emits an offer token for purchase
RTDNPush notification via Cloud Pub/Sub when purchase or subscription state changes
Linked Purchase TokenPoints a new token back to the prior one on upgrade or downgrade. Follow the chain on the server

Product types the next skill will branch on:

TypeSubtypeNotes
One timeConsumableBuyable repeatedly after consumption. Virtual currency, boosts
One timeNon consumablePermanent. Ad removal, unlocks
Subscriptionauto-renewingStandard recurring. Google charges until canceled
SubscriptionPrepaidFixed period, no auto renewal. User tops up to extend
SubscriptionInstallmentSelect markets (BR, FR, IT, ES). Minimum payment commitment

High level purchase flow the next skill will implement:

  1. App queries product details through PBL.
  2. App shows products with localized prices.
  3. User taps Buy. App calls launchBillingFlow().
  4. Google Play dialog collects payment.
  5. Google processes payment. May enter pending for cash payments.
  6. PBL fires PurchasesUpdatedListener.
  7. App sends purchase token to backend.
  8. Backend calls Developer API to verify.
  9. Backend records entitlement, app unlocks content.
  10. Backend acknowledges within 3 days. For subscriptions, backend processes RTDNs for the rest of the lifecycle.

Phase 4: Verify

Sanity check the developer's understanding before moving on:

  • Can they name the three pillars and what each one owns?
  • Do they know which pillar is the source of truth? (Answer: Google Play Developer API)
  • Do they know the acknowledgement deadline? (Answer: 3 days, else auto refund)
  • Can they state whether their product is one time (consumable vs non consumable) or subscription (auto renewing, prepaid, installment)?
  • Do they know that entitlement tracking is their responsibility, not Google's?
  • Have they picked the next skill to invoke based on the Phase 2 table?

If any answer is unclear, re-read the relevant section of the full chapter before proceeding. If the developer is trying to sell physical goods, services performed in the physical world, peer to peer payments, or content consumable outside the app, Google Play Billing is not required. Alternative billing and external link programs vary by region (South Korea, India, EEA, United States, Japan, United Kingdom, Australia and other user choice billing markets); route to google-play/alternative-billing.

References

Veelgestelde vragen

Wat doet de AI-skill Understanding Billing?

Use this skill when a developer is new to Google Play Billing or needs to orient themselves before picking an implementation task. Maps their goal to the right pillar (Play Billing Library, Google Play Developer API, Play Console plus RTDNs) and routes them to the concrete skill to invoke next.

Waarom Understanding Billing gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Understanding Billing bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Understanding Billing in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/RevenueCat/play-billing-skills/tree/main/google-play/understanding-billing. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Understanding Billing gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Understanding Billing gebruiken?

Zoveel als je wilt. Je kunt Understanding Billing gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Understanding Billing gratis?

Ja. Deze skill is door RevenueCat op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇