About gpc-purchase-orders
gpc-purchase-orders is a skill for agents handling in-app purchases and orders. It covers purchase verification, subscriptions, refunds, and external transactions, with order inspection and explicit confirmation required before refunds.
Key features
- 01Verify purchase tokens
- 02Check subscription status
- 03List voided purchases
- 04Get single or batch orders
- 05Refund with confirmation
- 06Manage external transactions
Use cases
- 01Verify an in-app purchase
- 02Check whether a subscription is active
- 03Inspect an order before refunding
- 04Manage alternative-billing transactions
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ androidpoet/ playconsole-cli-skills --skill gpc-purchase-ordersAfter installing, type/gpc-purchase-ordersin Claude Code to confirm it loaded.
Details
From the project READMEPurchases & Orders
Use this skill when verifying purchases, checking subscription status, processing refunds, or managing external transactions.
Purchase verification
Verify a purchase
gpc purchases verify --product-id premium_upgrade --token PURCHASE_TOKEN --package com.example.app
Check subscription status
gpc purchases subscription-status --product-id monthly_pro --token PURCHASE_TOKEN --package com.example.app
Acknowledge a purchase
gpc purchases acknowledge --product-id premium_upgrade --token PURCHASE_TOKEN --package com.example.app
Voided purchases
List voided purchases
gpc purchases voided list --package com.example.app
Orders
Get order details
gpc orders get --order-id GPA.1234-5678-9012 --package com.example.app
Get multiple orders
gpc orders batch-get --order-ids GPA.1234-5678-9012,GPA.9876-5432-1098 --package com.example.app
Refund an order
gpc orders refund --order-id GPA.1234-5678-9012 --confirm --package com.example.app
External transactions (alternative billing)
Create external transaction
gpc ext-tx create --file transaction.json --package com.example.app
Get external transaction
gpc ext-tx get --name transactions/12345 --package com.example.app
Refund external transaction
gpc ext-tx refund --name transactions/12345 --confirm --package com.example.app
Agent behavior
- Always verify purchase token validity before taking action.
- Require
--confirmfor refunds; never auto-confirm. - Show order details before processing refunds.
- Use
gpc orders getto inspect beforegpc orders refund.
Notes
- Purchase tokens come from the client app's billing library.
- Voided purchases include refunds, chargebacks, and revocations.
- External transactions are for apps using alternative billing (requires enrollment).
ext-txis the short alias forexternal-transactions.
Comments
Markdown supported