/revenuecat-play-billing:rc-one-time-productsfrom revenuecat-play-billing
Sells one-time products on Android with RevenueCat, covering offering fetching, awaitPurchase for non-subscription packages, and automatic SDK acknowledgment/consumption.
Ships in revenuecat-play-billing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
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.
Purchases.configure runs once on app start with your Android API key and the current App User ID.Fetch offerings, launch the purchase, then read the result off CustomerInfo.
val offerings = Purchases.sharedInstance.awaitOfferings()
val pkg = offerings.current?.availablePackages?.firstOrNull() ?: return
Launch the purchase with awaitPurchase. It suspends until the RevenueCat backend verifies the token.
val result = Purchases.sharedInstance.awaitPurchase(
PurchaseParams.Builder(activity, pkg).build()
)
val info = result.customerInfo
Read access through entitlements, or fall back to the non subscription transactions list.
val hasAccess = info.entitlements["lifetime_access"]?.isActive == true
val owned = info.nonSubscriptionTransactions
.any { it.productIdentifier == "lifetime_product_id" }
The SDK acknowledges non consumables and consumes consumables automatically once the backend verifies the purchase. You do not call acknowledgePurchase or consumeAsync.
Wrap awaitPurchase to separate cancellation, pending payments, and real errors.
try { /* awaitPurchase */ } catch (e: PurchasesTransactionException) {
when {
e.error.code == PurchasesErrorCode.PaymentPendingError -> showPending()
e.userCancelled -> Unit
else -> showError(userFacingMessage(e.error)) // log e.error.message; mapping in rc-error-handling
}
}
| 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). |
result.customerInfo from awaitPurchase. Do not grant access from optimistic local state.UpdatedCustomerInfoListener so you react when the payment completes.NON_RENEWING_PURCHASE webhook. With Google Play Real Time Developer Notifications connected to RevenueCat, a refund of a one time purchase arrives as CANCELLATION. Do not reimplement Google Play Developer API verification.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub revenuecat/ai-toolkit --plugin revenuecat-play-billing20 skills in this plugin
/rc-alternative-billingUse this skill when scoping Google Play alternative billing work with RevenueCat Android SDK 11.x. Documents the support status as of purchases-android 11.1.0, which flows RevenueCat abstracts, and which require direct integration./rc-backendUse this skill when your backend needs to read or update RevenueCat state on Android. Covers the RevenueCat REST API (v1 subscribers endpoint, grant/revoke entitlements, attributes), secret vs public SDK API key usage, and why you do not build a receipt verification backend with RevenueCat./rc-cancellations-pauses-winbackOther plugins' skills for the same job