Логотип Setup

Setup

Организация
RevenueCat
setup

Use this skill when configuring Play Console, creating products, enabling service account API access, or setting up RTDN before writing billing code. You stand up the full Google Play billing environment so app and backend code can authenticate, query products, and receive server side purchase events.

Add to TypingMind

Обзор

ИздательRevenueCat
Репозиторийplay-billing-skills
Название навыкаsetup
Звёзды
58
Форки
0
Файлы в комплекте
Только инструкции
ЛицензияApache-2.0
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Всё необходимое — в инструкциях

    Всё необходимое для модели содержится в инструкциях — никаких дополнительных файлов для синхронизации.

  • Открытый исходный код

    Издатель навыка на GitHub — RevenueCat. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Setup в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/RevenueCat/play-billing-skills/tree/main/google-play/setup
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

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/setup .claude/skills/setup
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Setup в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Setup, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Setup не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

Phase 0: Intent

Use this skill when any of the following is true:

  • You are starting a new Android billing integration and have not yet configured Play Console, products, API access, or RTDN.
  • A teammate asks you to "set up Play billing" or "wire up server side purchase notifications" before any code lands.
  • You hit errors like "This version of the app is not configured for billing through Google Play", 403 responses from the Google Play Developer API, or missing Pub/Sub test notifications, and you need to retrace the environment setup.

Outcome: a verified environment with a Play Developer account, a linked Payments profile, an internal test track build, at least one active product, a service account with the right Play Console roles, and a Pub/Sub topic receiving Real Time Developer Notifications.

Phase 1: Discovery

Gather facts before changing anything. Ask or check:

  1. Does the developer account already exist, and is it individual or organization? Organization verification can take up to two weeks.
  2. Is there a verified Google Payments Center profile? Without it, you cannot create paid products or publish in app purchases.
  3. What is the app's package name, signing configuration, and current Play Console upload state (any track)?
  4. Which Google Cloud project hosts the service account (with the Google Play Developer API enabled) and the Pub/Sub topic?
  5. Does a service account already exist for this backend, and which roles are granted in the Play Console (not only in GCP IAM)?
  6. Is there an existing Pub/Sub topic, and has google-play-developer-notifications@system.gserviceaccount.com been granted Publisher on it?
  7. Will the server side consumer use a push subscription (public HTTPS endpoint) or a pull subscription (firewalled or batched)?

If any answer is "unknown," treat it as a discovery task before executing Phase 3.

Phase 2: Plan

Work top down. Each step unblocks the next, so do not skip ahead.

  1. Register and verify the Google Play Developer Account; pay the one time $25 fee.
  2. Create and verify the Google Payments Center profile and tax information.
  3. Add the Play Billing Library 9.x dependency and upload a signed build to the internal test track.
  4. Create at least one product (one time product or subscription) and activate it.
  5. Create a service account in a Cloud project with the Google Play Developer API enabled, then invite it in Play Console Users and permissions with the billing permissions.
  6. Create a Pub/Sub topic, grant Google publish access, and create a push or pull subscription.
  7. Point Play Console RTDN at the full topic name and send a test notification.

Stop and re-plan if Payments verification, identity verification, or API enablement is incomplete. Later steps will silently fail otherwise.

Phase 3: Execute

3.1 Play Console app setup

  1. Register at play.google.com/console. Choose personal or organization. Both have the same Play Console features; choose organization for a business, which several alternative billing programs require.
  2. Complete identity verification. Keep business registration, government issued ID, and proof of address accessible for organization accounts.
  3. Create the app at All apps > Create app. Fill name, default language, app type, and free or paid.
  4. Complete content, ads, and target audience declarations and add a privacy policy URL. Placeholder store listing content is fine for internal testing, but the privacy policy URL is required on every track.
  5. Create the Payments profile at Setup > Payments profile with bank, business, and tax details. Wait for verification before creating paid products.

Add the Play Billing Library to the app module build.gradle.kts:

kotlin
dependencies {
    val billingVersion = "9.1.0"
    implementation(
        "com.android.billingclient:billing-ktx:$billingVersion"
    )
}

If the project uses a version catalog, define the version in libs.versions.toml:

toml
[versions]
billing = "9.1.0"

[libraries]
billing-ktx = { module = "com.android.billingclient:billing-ktx", version.ref = "billing" }

Pin the version explicitly. PBL 9 needs minSdk 23 or higher and compileSdk 35 or higher (it brings in androidx.core 1.15.0, whose AAR metadata requires compileSdk 35). The library's own targetSdk does not set yours: Google Play has required new apps and updates to target API 36 since August 31, 2026. billing-ktx 9.x needs Kotlin 2.2 or newer; on an older Kotlin, upgrade Kotlin or use com.android.billingclient:billing with the listener APIs. An up to date Google Play Store app must be on the test device. Confirm google() and mavenCentral() are present in settings.gradle.kts.

Upload to the internal test track:

  1. Build a signed APK or App Bundle. Use Play App Signing on the first upload.
  2. Go to Testing > Internal testing and create a new release.
  3. Upload the artifact and add testers by Google account email.
  4. Roll out. Testers must accept the opt in link before installing from the Play Store.

Internal releases publish in minutes with no review. Use closed testing (up to 200 email lists) or open testing for broader audiences later.

3.2 Product and subscription creation

Create a one time product:

  1. Go to Monetize with Play > Products > One-time products > Create one-time product (consoles still on the legacy model show In-app products).
  2. Enter a Product ID such as remove_ads. The ID cannot be changed or reused once the product is created.
  3. Set name, description, tax and compliance settings, then add a purchase option (Buy or Rent) with regional prices.
  4. Click Activate.

Use a <category>_<descriptor> naming scheme (premium_monthly, coins_500, remove_ads). Keep IDs lowercase with underscores. Do not encode prices or promotions in the ID.

For subscriptions, create a Subscription, then add Base Plans and Offers inside it. A consistent scheme such as premium_monthly (subscription), standard (base plan), and intro-7d-free (offer) stays readable during later debugging. Base plan and offer IDs allow only lowercase letters, digits and hyphens. Product IDs allow lowercase letters, digits, underscores and periods, but no hyphens.

Newly activated products can take a few minutes to propagate. If queryProductDetails returns empty immediately after activation, wait and retry.

3.3 Service account provisioning for the Google Play Developer API

Create the service account in GCP, then grant Play Console roles separately.

  1. In the Google Cloud Console, select or create a project and enable the Google Play Android Developer API for it.
  2. Go to IAM & Admin > Service Accounts > Create Service Account and name it (for example play-billing-backend).
  3. Create a JSON key and download it to a secrets manager. Do not commit it or embed it in a client.
  4. In the Play Console, go to Users and permissions > Invite new users, enter the service account email, and grant the permissions below.

Grant only the roles the backend needs. Play Console permissions are separate from GCP IAM.

Play Console permissionPurposeGrant when
View financial data, orders, and cancellation survey responsesRequired by the Google Play Billing APIsAlways, for any billing backend
Manage orders and subscriptionsVerify and acknowledge purchases, cancel, defer, revoke, refundAlways, for any billing backend
Admin (all permissions)Full account controlAvoid unless a specific task requires it

Use separate service accounts for separate purposes (for example, purchase verification versus analytics). Rotate keys periodically; up to 10 keys per service account are allowed so you can deploy a new key before deleting the old. For Cloud Run, GKE, or App Engine, prefer workload identity federation over downloaded key files.

Test API access with a read call such as listing in app products:

kotlin
// Server side Kotlin using google-api-services
val transport = GoogleNetHttpTransport.newTrustedTransport()
val credential = GoogleCredentials
    .fromStream(FileInputStream("service-account.json"))
    .createScoped(
        "https://www.googleapis.com/auth/androidpublisher"
    )
val publisher = AndroidPublisher.Builder(
    transport,
    GsonFactory.getDefaultInstance(),
    HttpCredentialsAdapter(credential)
).setApplicationName("your-app").build()

3.4 Pub/Sub topic and RTDN configuration

Create the topic:

  1. In the Google Cloud Console, go to Pub/Sub > Topics > Create Topic.
  2. Name it descriptively (for example play-billing-notifications).
  3. Keep default settings and create.

Grant Google publish access:

  1. Open the topic and click Permissions.
  2. Add principal google-play-developer-notifications@system.gserviceaccount.com.
  3. Assign role Pub/Sub Publisher.

Create a subscription. Pick the delivery model that matches your infrastructure.

Subscription typeHow it deliversChoose when
PushPub/Sub sends HTTP POST with a base64 JSON payload; endpoint must return 2xxYou have a public HTTPS endpoint and want the simplest path
PullYour server calls the Pub/Sub API to fetch and acknowledge messagesServer sits behind a firewall, batches work, or needs concurrency control

Configure a dead letter topic. Pub/Sub keeps retrying failed messages until they expire, then drops them. Set a maximum delivery attempt count (allowed between 5 and 100) so undeliverable messages land on the dead letter topic rather than looping. Monitor the dead letter topic; messages there are events your system did not process.

Each RTDN message payload looks like:

kotlin
// Decoded Pub/Sub message payload
{
    "version": "1.0",
    "packageName": "com.example.app",
    "eventTimeMillis": "1234567890123",
    "subscriptionNotification": {
        "version": "1.0",
        "notificationType": 4,
        "purchaseToken": "abc123..."
    }
}

The notification carries only the token; call purchases.subscriptionsv2.get and read lineItems[].productId to learn the product.

Enable RTDN in the Play Console:

  1. Go to Monetize > Monetization setup.
  2. Check Enable real-time notifications and enter the full topic name projects/your-project-id/topics/play-billing-notifications.
  3. If you sell one time products, choose Get all notifications for subscriptions and one-time products; the other option sends no one time product purchase events.
  4. Save changes.

Phase 4: Verify

Send a test notification and walk the environment checklist.

  1. In the Play Console RTDN settings, click Send Test Message.
  2. Confirm the message arrives at the Pub/Sub subscription. For push, confirm the endpoint received an HTTP POST and returned 200.
  3. The payload contains a testNotification field instead of subscriptionNotification or oneTimeProductNotification. The handler should acknowledge it without treating it as a real event.

If the test never arrives, check each link in the chain:

SymptomLikely causeFix
"This version of the app is not configured for billing through Google Play"App not on a test track, version code mismatch, or wrong signing keyInstall the exact signed build uploaded to the Play Console
queryProductDetails returns emptyProduct not Active, wrong ID or type, or propagation delayActivate the product; verify ID and INAPP vs SUBS; wait a few minutes
403 from Google Play Developer APIService account missing Play Console permissions, or the API is not enabled in its Cloud projectInvite the service account in Users and permissions with both billing permissions; enable the Google Play Android Developer API
RTDN test never arrivesWrong topic name, missing Publisher role, unreachable push endpointMatch full topic name; grant Publisher to google-play-developer-notifications@system.gserviceaccount.com; verify HTTPS endpoint returns 200
Tester is charged real money or sees no test instrumentsAccount is not a license tester, or a different device account is payingAdd it under Settings > License testing; the account that downloaded the app (or the first account on the device) makes the purchase
Gradle fails to resolve billing libraryMissing repositories or proxy blockAdd google() and mavenCentral() in settings.gradle.kts; configure proxy if needed

Final environment checklist:

  • Google Play Developer Account registered and verified
  • Google Payments Center profile linked and verified
  • Play Billing Library 9.x pinned in app dependencies
  • App uploaded to the internal test track
  • At least one product created and activated
  • Service account created with minimum Play Console roles
  • Cloud Pub/Sub topic created with Google Publisher permission
  • Push or pull subscription configured (with dead letter topic)
  • RTDN enabled in Play Console pointing to the full topic name
  • Test notification sent and acknowledged

When every item is checked, the environment is ready for the billing code that follows in later chapters.

References

Часто задаваемые вопросы

Что делает навык ИИ Setup?

Use this skill when configuring Play Console, creating products, enabling service account API access, or setting up RTDN before writing billing code. You stand up the full Google Play billing environment so app and backend code can authenticate, query products, and receive server side purchase events.

Зачем использовать Setup в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Setup — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Setup в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/RevenueCat/play-billing-skills/tree/main/google-play/setup. TypingMind прочитает файл SKILL.md и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Setup?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Setup?

С любым количеством. В TypingMind вы можете использовать Setup с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Setup?

Да. Навык опубликован на GitHub по лицензии Apache-2.0. Издатель — RevenueCat. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все
Логотип openclaw

Openclaw Ci Limits

openclaw
ОрганизацияПопулярный

Управляйте GitHub Actions и ресурсами CI Blacksmith в OpenClaw: бюджетами регистрации раннеров, ограничениями fanout, одновременным запуском только одного задания для отправок в main, размером шардов, переносом задач на хостed-раннеры, состоянием очереди и безопасным…

82.2K
391K
Файлы: 1
Открыть
Логотип openclaw

Openclaw Testing

openclaw
ОрганизацияПопулярный

Выбирайте подходящие по масштабу тесты и проверки OpenClaw, диагностируйте сбои и направляйте вопросы, зависящие от окружения, и подтверждение релиза ответственным за них специалистам.

82.2K
391K
Файлы: 2
Открыть
Логотип mattpocock

Wizard

mattpocock
СообществоПопулярный

Создаёт интерактивный сценарий на bash, который шаг за шагом проводит человека через действия, доступные только ему. Используйте его для подготовки инфраструктуры, настройки учётных данных или секретов CI, работы с незнакомой…

22.3K
264.4K
Файлы: 2
Открыть
Логотип affaan-m

Deployment Patterns

affaan-m
СообществоПопулярный

Процессы развертывания, паттерны CI/CD-пайплайнов, контейнеризация с Docker, проверки работоспособности, стратегии отката и контрольные списки готовности приложений…

39.1K
261.1K
Инструкции
Открыть

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇