mcpField
G
gpc-purchase-orders

gpc-purchase-orders

github.com/androidpoetOther439 installsUpdated 17w ago
Repository

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

  1. 01Verify purchase tokens
  2. 02Check subscription status
  3. 03List voided purchases
  4. 04Get single or batch orders
  5. 05Refund with confirmation
  6. 06Manage external transactions

Use cases

  1. 01Verify an in-app purchase
  2. 02Check whether a subscription is active
  3. 03Inspect an order before refunding
  4. 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-orders

After installing, type/gpc-purchase-ordersin Claude Code to confirm it loaded.

Details

From the project README

Purchases & 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 --confirm for refunds; never auto-confirm.
  • Show order details before processing refunds.
  • Use gpc orders get to inspect before gpc 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-tx is the short alias for external-transactions.

Comments

Markdown supported