gplay-purchase-verification

gplay-purchase-verification is a skill for Claude Code, Codex from tamtom/gplay-cli-skills. It costs 32 tokens per session (2,771 once invoked), scanned A, a copy of gplay-purchase-verification, MIT.

A server-side checker for confirming Android in-app purchases and subscriptions through the Google Play Developer API. Server-side means the check happens on your backend rather than only inside the app.

In plain words
What is it for?
Use it to verify purchase tokens, confirm payments, check subscription state, and process refunds or cancellations.
Why use it?
It helps prevent forged purchase claims and lets your service handle subscription status, refunds, and cancellations.

Skill for Claude CodeCodex

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

Good fit Use it to verify purchase tokens, confirm payments, check subscription state, and process refunds or cancellations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tamtom/gplay-cli-skills/gplay-purchase-verification
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 tamtom/gplay-cli-skills --skill gplay-purchase-verification
Clone the repo
git clone --depth 1 https://github.com/tamtom/gplay-cli-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 gplay-purchase-verification

README.md
[![agentmods](https://agentmods.dev/badge/skills/tamtom/gplay-cli-skills/gplay-purchase-verification/github.svg)](https://agentmods.dev/skills/tamtom/gplay-cli-skills/gplay-purchase-verification)
Your own site
<a href="https://agentmods.dev/skills/tamtom/gplay-cli-skills/gplay-purchase-verification"><img src="https://agentmods.dev/badge/skills/tamtom/gplay-cli-skills/gplay-purchase-verification/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 gplay-purchase-verification

Your own site · 80×15
<a href="https://agentmods.dev/skills/tamtom/gplay-cli-skills/gplay-purchase-verification"><img src="https://agentmods.dev/badge/skills/tamtom/gplay-cli-skills/gplay-purchase-verification.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,771 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 100% copy Near-identical to another mod 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.00032 $0.02771
Opus 5 $0.00016 $0.01385
Sonnet 5 $0.00006 $0.00554
Haiku 4.5 $0.00003 $0.00277

Measured 12d ago against content hash 0d54d8259a3f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

gplay-purchase-verification 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 12d 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.

Origin

This is a copy

100% identical to gplay-purchase-verification — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/gplay-purchase-verification/SKILL.md · 442 lines

How it starts

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

Purchase Verification for Google Play

Use this skill when you need to verify in-app purchases or subscriptions from your backend server.

Why Verify Purchases Server-Side?

Client-side verification can be bypassed. Always verify purchases on your server:

  • Prevent fraud and piracy
  • Ensure user actually paid
  • Check subscription status
  • Handle refunds and cancellations

Authentication Setup

Your backend needs a service account with permissions to verify purchases.

Create service account

  1. Go to Google Cloud Console
  2. Create service account
  3. Grant "Service Account User" role
  4. Download JSON key

Grant API access

  1. Go to Play Console
  2. Users & Permissions → Service Accounts
  3. Grant service account access to your apps

Verify In-App Product Purchase

Get purchase details

gplay purchases products get \
  --package com.example.app \
  --product-id premium_upgrade \
  --token <PURCHASE_TOKEN>

Response

{
  "kind": "androidpublisher#productPurchase",
  "purchaseTimeMillis": "1706400000000",
  "purchaseState": 0,
  "consumptionState": 0,
  "developerPayload": "user_123",
  "orderId": "GPA.1234-5678-9012-34567",
  "purchaseType": 0
}

Purchase states

  • 0 = Purchased
  • 1 = Canceled
  • 2 = Pending

Consumption states

  • 0 = Yet to be consumed
  • 1 = Consumed

Acknowledge Purchase

After verifying, acknowledge the purchase:

gplay purchases products acknowledge \
  --package com.example.app \
  --product-id premium_upgrade \
  --token <PURCHASE_TOKEN>

Important: Unacknowledged purchases will be refunded after 3 days.

Consume Purchase (for consumables)

For consumable items (coins, gems, etc.):

gplay purchases products consume \
  --package com.example.app \
  --product-id coins_100 \
  --token <PURCHASE_TOKEN>

Verify Subscription

Prefer the v2 API. For new integrations use gplay purchases subscriptionsv2 get (and subscriptionsv2 cancel/defer/revoke, purchases productsv2 get). The v2 SubscriptionPurchaseV2 model reflects base plans and offers; the v1 endpoints below still work but are the legacy shape.

Read the full file on GitHub · 442 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. 12d ago First seen · 442 lines · 32 tokens per session scan A 0d54d8259a3f

Subscribe to this mod's changes

gplay-purchase-verification is a skill published in the GitHub repository tamtom/gplay-cli-skills (45 stars, last pushed 1mo ago), licensed MIT. It adds 32 tokens to every session and 2,771 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to gplay-purchase-verification, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

convex-billing

Add Stripe billing/payments to the Convex app via @convex-dev/stripe (checkout + webhook + gating).

openclaw/clawhub · 29 tokens

cloudbase-wechat-integration

A guide for connecting CloudBase applications to WeChat services, including payments, official accounts, and user identity.

TencentCloudBase/CloudBase-AI-Toolkit · 94 tokens

commerce-app-business-config

Manage custom business configuration in an Adobe Commerce app. Use when the user wants to add, modify, or remove merchant-configurable settings (config fields, admin config, store configuration) exposed through Commerce Admin. Creates typed config fields (text, password, email, url, tel, boolean, list) in…

adobe/skills · 80 tokens

baselinker-webhooks

Receive BaseLinker (Base.com) webhooks. Use when building a BaseLinker order or warehouse callback receiver, because BaseLinker is not a normal webhook source: deliveries arrive as HTTP HEAD requests with NO body, the entire payload is in the query string (observed params: orderid, state), there is NO signature…

hookdeck/webhook-skills · 131 tokens

b2c-custom-job-steps

Create custom job steps for B2C Commerce batch processing. Use this skill whenever the user needs to write a batch job, data export script, scheduled cleanup task, or any server-side processing that runs on a schedule. Also use when they ask about steptypes.json, chunk-oriented vs task-oriented job steps…

SalesforceCommerceCloud/b2c-developer-tooling · 148 tokens

b2c-business-manager-extensions

Build Business Manager extension cartridges with custom admin tools, menu items, and dialog actions. Use this skill whenever the user needs to create bm cartridges, add menu actions or dialog buttons in BM, configure bmextensions.xml, or extend admin pages with form overlays. Also use when customizing the BM interface…

SalesforceCommerceCloud/b2c-developer-tooling · 90 tokens