one-time-products
Installation
SKILL.md
One Time Products
Build a complete Google Play one time product integration with Play Billing Library 9.x. This skill walks through the full lifecycle: querying, launching, handling pending state, and finishing with either consume or acknowledge.
Phase 0: Intent
Confirm what you are building before writing code. Answer these questions:
- What product type is this? Consumable (repeatable like coins) or non consumable (one time like remove ads)?
- Where does fulfillment happen? Server side verification plus server side consume or acknowledge is the reliable pattern. Client side is acceptable only during early development.
- Which PBL version is the app on? PBL 9.x is assumed. Pending purchases for one time products are enabled explicitly by passing
PendingPurchasesParams.newBuilder().enableOneTimeProducts()toenablePendingPurchases()(required since PBL 8.0; the parameterless overload was removed in 8.0). - Do you need multi quantity, pre order, or multiple offers on the same product?
If any answer is unclear, stop and gather the requirements. Do not ship a purchase flow with ambiguous fulfillment rules.
Phase 1: Discovery
Gather the facts that drive the implementation.