revenuecat/ai-toolkit/rc-one-time-products
Claude Code and agent skill by revenuecat/ai-toolkit
- community
Checking that the SKILL.md file is still in the repository.
Use this skill when selling one time products on Android with RevenueCat. Covers fetching offerings, running awaitPurchase on a non subscription package, and relying on the SDK to acknowledge or consume automatically.
Install
npx vskill@latest install revenuecat/ai-toolkit/rc-one-time-productsSKILL.md
The same SKILL.md was published earlier as revenuecat/ai-toolkit/rc-one-time-products.
One Time Products with RevenueCat
Sell one time products on Android without writing BillingClient glue. The RevenueCat SDK fetches products, launches the purchase, verifies the receipt, and acknowledges or consumes the token for you.
Phase 1: Scope
Answer these before touching code.
| Question | Decision | |
|---|---|---|
| Is the product consumable or non consumable? | One time products are consumed by default. Mark lifetime or permanent unlocks as non consumable in the RevenueCat dashboard (Product catalog > Products). | |
| Do you read access through entitlements or transactions? | Prefer entitlements so access logic stays decoupled from product IDs. | |
| Do you need server notification of the purchase? | Use RevenueCat webhooks. The NON_RENEWING_PURCHASE event fires for every new non subscription purchase. |
Do not call BillingClient.queryProductDetailsAsync, acknowledgePurchase, or consumeAsync yourself once RevenueCat is integrated. The SDK owns the BillingClient instance.
Phase 2: Prepare
- Configure the product in Google Play Console as a one time product. Keep one buy purchase option marked backwards compatible (the first one is by default). RevenueCat 10.x and 11.x (checked at 11.1.0) sell only that purchase option; rent options and one time product offers are not exposed through the SDK.
- In the RevenueCat dashboard, attach the product to an offering and package, and mark it non consumable if it should be bought only once (consumable is the default).
- Confirm
Purchases.configureruns once on app start with your Android API key and the current App User ID.
Phase 3: Execute
Fetch offerings, launch the purchase, then read the result off CustomerInfo.
Launch the purchase with awaitPurchase. It suspends until the RevenueCat backend verifies the token.
Read access through entitlements, or fall back to the non subscription transactions list.
The SDK acknowledges non consumables and consumes consumables automatically once the backend verifies the purchase. You do not call acknowledgePurchase or consumeAsync.
Phase 4: Handle Edge Cases
Wrap awaitPurchase to separate cancellation, pending payments, and real errors.
| Outcome | SDK signal | Action | |
|---|---|---|---|
| Success | awaitPurchase returns with updated CustomerInfo | Grant access from entitlements or nonSubscriptionTransactions. | |
| User cancel | PurchasesTransactionException, userCancelled == true | Swallow silently. | |
| Pending payment | PurchasesTransactionException, PaymentPendingError | Show a pending message. The SDK updates the entitlement later through UpdatedCustomerInfoListener. | |
| Other error | PurchasesTransactionException, other codes | Log e.error.message and show a mapped string from userFacingMessage (see rc-error-handling). |
Phase 5: Verify
- Trust
result.customerInfofromawaitPurchase. Do not grant access from optimistic local state. - Pending purchases do not grant entitlements. Register an
UpdatedCustomerInfoListenerso you react when the payment completes. - For server side provisioning, subscribe to the RevenueCat
NON_RENEWING_PURCHASEwebhook. With Google Play Real Time Developer Notifications connected to RevenueCat, a refund of a one time purchase arrives asCANCELLATION. Do not reimplement Google Play Developer API verification.
References
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingrevenuecat-play-billing/skills/rc-one-time-products/SKILL.md
Popularity
- Repository stars
- 73
- Repository forks
- 9
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/revenuecat/ai-toolkit/rc-one-time-products)