cancellations-pauses-winback

cancellations-pauses-winback is a skill for Claude Code, Codex from RevenueCat/play-billing-skills. It costs 54 tokens per session (2,646 once invoked), scanned A, original, Apache-2.0.

A guide to handling the different ways a Google Play subscription can end, pause, resume, or return. It covers actions started by the user, Google, or your own backend.

In plain words
What is it for?
Implementing cancellation, pause and resume flows, refunds, revocations, restores, resubscriptions, billing deferrals, and winback offers for Google Play subscriptions.
Why use it?
Subscription endings do not all have the same effect on access, refunds, records, or recovery. This guide helps you choose the right handling for each case.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Implementing cancellation, pause and resume flows, refunds, revocations, restores, resubscriptions, billing deferrals, and winback offers for Google Play subscriptions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/revenuecat/play-billing-skills/cancellations-pauses-winback
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add RevenueCat/play-billing-skills --skill cancellations-pauses-winback
Clone the repo
git clone --depth 1 https://github.com/RevenueCat/play-billing-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cancellations-pauses-winback

README.md
[![agentmods](https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/cancellations-pauses-winback/github.svg)](https://agentmods.dev/skills/revenuecat/play-billing-skills/cancellations-pauses-winback)
Your own site
<a href="https://agentmods.dev/skills/revenuecat/play-billing-skills/cancellations-pauses-winback"><img src="https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/cancellations-pauses-winback/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cancellations-pauses-winback

Your own site · 80×15
<a href="https://agentmods.dev/skills/revenuecat/play-billing-skills/cancellations-pauses-winback"><img src="https://agentmods.dev/badge/skills/revenuecat/play-billing-skills/cancellations-pauses-winback.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,646 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.02646
Opus 5.5 $0.00022 $0.01058
Sonnet 5.5 $0.00011 $0.00529
Haiku 4.5 $0.00005 $0.00265

Measured 16d ago against content hash e47063fbfc71, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cancellations-pauses-winback scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

google-play/cancellations-pauses-winback/SKILL.md · 232 lines

How it starts

The opening of the file, as written. The whole thing — 232 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cancellations, Pauses, and Winback

A subscription can end in several ways, and each one has a different effect on user access, entitlement records, and recovery options. Use this skill when you are wiring up any end of life or pause flow for a Google Play subscription: user cancellation, developer cancellation, system cancellation after payment failure, pause, resume, restore, resubscribe, deferral, or revocation.

Phase 1: Identify the Scenario

Before writing any code, identify which of the following you are handling. The later phases branch on this choice.

  • The user is canceling through Play (silent to your app, signaled by RTDN).
  • You are canceling from your backend on the user's behalf or for your own reasons.
  • Google canceled after exhausting grace period and account hold.
  • The user is pausing, resuming, or a pause is scheduled.
  • The user is restoring a cancellation before expiry, or resubscribing after expiry.
  • You are deferring billing as goodwill or compensation.
  • You are revoking immediately due to fraud or a terms violation.

Phase 2: Plan by Cancellation Type

Each cancellation type behaves differently with respect to access, refunds, RTDN signals, and recovery. Plan the entitlement logic using the matrix below before you touch the API.

Cancellation type matrix

Type API or Trigger Access After Refund Primary RTDN canceledStateContext member
User initiated Play Subscriptions Center Until expiryTime None (prorated not issued) SUBSCRIPTION_CANCELED userInitiatedCancellation
Developer, user requested purchases.subscriptionsv2.cancel with USER_REQUESTED_STOP_RENEWALS Until expiryTime None SUBSCRIPTION_CANCELED Not documented for this cancellationType; read whichever member is set
Developer, your reason purchases.subscriptionsv2.cancel with DEVELOPER_REQUESTED_STOP_PAYMENTS Until expiryTime None SUBSCRIPTION_CANCELED developerInitiatedCancellation
System, payment failure Automatic after grace + account hold None from the moment account hold expires None SUBSCRIPTION_CANCELED systemInitiatedCancellation
Replacement (plan change) Plan change flow Handled by new token N/A SUBSCRIPTION_PURCHASED on the new token (linkedPurchaseToken = old token); old token may report SUBSCRIPTION_EXPIRED (DEFERRED) replacementCancellation
Revoke purchases.subscriptionsv2.revoke Immediately terminated The refund type you pass (fullRefund, or proratedRefund for auto renewing plans and prepaid plans of at least one week) SUBSCRIPTION_REVOKED, plus a voidedPurchaseNotification n/a (terminated)

Read the full file on GitHub · 232 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed · +2 lines e47063fbfc71
  2. 1mo ago Changed · +6 lines 50b064633ba9
  3. 3mo ago First seen · 224 lines · 54 tokens per session scan A e47d338da34f

Subscribe to this mod's changes

cancellations-pauses-winback is a skill published in the GitHub repository RevenueCat/play-billing-skills (60 stars, last pushed 16d ago), licensed Apache-2.0. It adds 54 tokens to every session and 2,646 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

cancellations-pauses-winback compared with skills from other repositories

cancellations-pauses-winback next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cancellations-pauses-winbackRevenueCat/play-billing-skillsSkill6016d agoApache-2.0A54Claude Code, Codex
play-billing-library-version-upgradeandroid/skillsSkill11k9d agoApache-2.0A39Claude Code
asc-revenuecat-catalog-syncrorkai/app-store-connect-cli-skillsSkill1.2k2d agoMITA51Claude Code
axiom-implement-iapCharlesWiltgen/AxiomSkill1.3ktodayMITA29Codex
subscription-lifecyclershankras/claude-code-apple-skillsSkill92323d agoMITA55Claude Code
google-playCraftOS-dev/CraftBotSkill4313d agoMITA70Claude Code, Codex
subscription-offersrshankras/claude-code-apple-skillsSkill92323d agoMITA55Claude Code