Skip to main content
skill CX Codex

rc-alternative-billing — Claude Code skill for Google Play

A skill that maps which Google Play alternative billing programs RevenueCat's Android SDK handles and which you build yourself.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add RevenueCat/ai-toolkit --skill rc-alternative-billing -a claude-code
Open on GitHub

What rc-alternative-billing does

This skill documents the support status of Google Play alternative billing in RevenueCat Android SDK. It walks through four programs — User Choice Billing, Alternative Billing Only, External Offers and External Payment Links — and what each demands from your app. Per the handbook chapter, RevenueCat's coverage of these programs is limited, so check the changelog for newer SDK releases before you start.

The work runs in three phases. Discovery first: which program you target, whether your app is eligible in the region, and whether you actually want RevenueCat Web Billing instead. Then the plan — wait for first-class SDK support or hand-roll the integration against the Play Billing Library. On the second path the skill points to PurchasesAreCompletedBy.MY_APP, which keeps purchase acknowledgement in your hands so the SDK does not double-handle it.

Inside you get a coverage table per flow, planning and verification checklists, and Kotlin snippets. There is also a section on the case that is not Google alternative billing at all: selling through RevenueCat's hosted web checkout via Offering.webCheckoutURL or Package.webCheckoutURL. The catch worth knowing up front — the RevenueCat SDK owns the BillingClient instance, so raw Play Billing calls alongside it need care.

What it helps with

  • work out which Google Play alternative billing programs the RevenueCat SDK supports
  • decide between waiting for SDK support and hand-rolling the Play Billing Library integration
  • keep purchase acknowledgement from being handled twice by your app and the SDK
  • tell Google's alternative billing programs apart from RevenueCat Web Billing
  • verify that alternative-path purchases reach your backend and reconcile with subscriber state

Example prompts for the agent

  • Help me scope a User Choice Billing integration with RevenueCat Android SDK 10.x
  • Which alternative billing flows does RevenueCat abstract, and which do I implement with the Play Billing Library?
  • Set up PurchasesAreCompletedBy.MY_APP for a hand-rolled alternative billing integration

How to install rc-alternative-billing

1Skills CLI (Vercel)

npx skills add RevenueCat/ai-toolkit --skill rc-alternative-billing -a claude-code

2Manually: put the files in place

~/.claude/skills/rc-alternative-billing/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/rc-alternative-billing/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about rc-alternative-billing

How do I install rc-alternative-billing in Claude?

Run npx skills add RevenueCat/ai-toolkit --skill rc-alternative-billing -a claude-code. The skill lands in ~/.claude/skills/rc-alternative-billing/SKILL.md.

What does rc-alternative-billing do?

It documents which Google Play alternative billing programs the RevenueCat Android SDK covers and which flows you implement directly against the Play Billing Library.

I just want to sell subscriptions through a web checkout. Is this skill relevant?

RevenueCat Web Billing is a separate product, not one of Google's alternative billing programs. The skill says so plainly and shows how to open Offering.webCheckoutURL or Package.webCheckoutURL.

Source text

SKILL.md · MIT
---
name: rc-alternative-billing
description: Use this skill when scoping Google Play alternative billing work with RevenueCat Android SDK 10.x. Documents the current support status, which flows RevenueCat abstracts and which require direct integration at the time the chapter was written.
license: Apache-2.0; see LICENSE
metadata:
  author: RevenueCat
  source: revenuecat-handbook chapter 18
  keywords:
  - android
  - revenuecat
  - alternative-billing
  - sdk8
  - user-choice-billing
---

# Alternative Billing Programs

Google runs several programs that let you collect payment outside standard Play Store billing. This skill tells you which pieces the RevenueCat Android SDK covers today and which ones you implement yourself against the Play Billing Library.

Per the handbook chapter, RevenueCat has limited support for these programs as of SDK 9.x. Treat that as the status of record; check the RevenueCat changelog for any newer SDK releases before you start work.

## Phase 1: Discovery

Answer these before writing any code.

| Question | Why it matters |
|---|---|
| Which program are you targeting? | User Choice Billing, Alternative Billing Only, External Offers, and External Payment Links each have different Play requirements. |
| Is your app eligible in the target region? | Google gates these programs by country and app category. You enroll through Play Console, not through RevenueCat. |
| Are you using RevenueCat Web Billing instead? | RevenueCat's web checkout is a separate product from Google's alternative billing. Do not conflate the two. |
| Which RevenueCat SDK version are you on? | Support evolves per release. What is unsupported in SDK 9.x may land later. |

If you actually want to sell subscriptions via a RevenueCat-hosted web checkout, that is not one of Google's alternative billing programs. Use `Offering.webCheckoutURL` or `Package.webCheckoutURL`:

```kotlin
val pkg = offerings.current?.monthly
pkg?.webCheckoutURL?.let { url ->
    startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(url.toString())))
}
```

After the user completes that purchase on the web, they redeem it in-app via deep link handling.

## Phase 2: Plan

Decide which of the two paths fits.

**Path A: Wait for SDK support.** If your launch timeline is flexible, watch the RevenueCat changelog and docs for first-class support of the specific program you need. This avoids running raw Play Billing Library code alongside RevenueCat.

**Path B: Hand roll the integration.** If you must ship now, implement the Play Billing Library APIs for the target program directly. The RevenueCat SDK owns the `BillingClient` instance, so running raw `BillingClient` calls alongside it needs care.

For Path B, set completion ownership so RevenueCat does not interfere with acknowledgement of purchases you are managing:

```kotlin
Purchases.configure(
    PurchasesConfiguration.Builder(context, apiKey)
        .purchasesAreCompletedBy(PurchasesAreCompletedBy.MY_APP)
        .build()
)
```

Planning checklist:

- [ ] Confirmed the Play program and regional eligibility in Play Console.
- [ ] Read the current RevenueCat docs and changelog for the SDK version you ship.
- [ ] Chose Path A or Path B with a clear reason.
- [ ] If Path B, identified which flows RevenueCat still drives and which you drive.

## Phase 3: Execute

What RevenueCat's SDK currently supports in this space, per the chapter:

| Flow | SDK coverage |
|---|---|
| RevenueCat Web Billing via `Offering.webCheckoutURL` / `Package.webCheckoutURL` | Supported. Not a Google alternative billing program. |
| User Choice Billing | No dedicated SDK APIs. Implement via Play Billing Library alongside RevenueCat. |
| Alternative Billing Only | No dedicated SDK APIs. Implement via Play Billing Library alongside RevenueCat. |
| External Offers | No dedicated SDK APIs. Implement via Play Billing Library alongside RevenueCat. |
| External Payment Links | No dedicated SDK APIs. Implement via Play Billing Library alongside RevenueCat. |

When you ship Path B, use `PurchasesAreCompletedBy.MY_APP` so acknowledgement stays in your hands for the purchases you manage, and leave the standard Play Store purchases to the RevenueCat SDK.

Verification steps:

- [ ] Standard Play Store purchases still flow through RevenueCat and appear in the dashboard.
- [ ] Purchases made through the alternative billing path reach your backend and are reconciled with RevenueCat subscriber state.
- [ ] Acknowledgement happens exactly once per purchase, with no double-handling between your code and the SDK.

## References

- [Full chapter](https://www.revenuecat.com/guides/revenuecat-android-sdk/alternative-billing-programs)

- RevenueCat Docs: https://www.revenuecat.com/docs/
- RevenueCat Codelabs: https://revenuecat.github.io/

© RevenueCat · MIT · RevenueCat/ai-toolkit

Similar skills

Everything for Mobile →

From the same set25

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor