From appcharge-skills
Implements the Appcharge Grant Award callback endpoint in a Go or Python publisher server. Verifies x-publisher-token and signature, parses the order payload, grants inventory, and returns publisherPurchaseId. Use when adding grant award webhook, fulfillment callback, purchase completion handler, or docs.appcharge.com grant-award-callback integration.
How this skill is triggered — by the user, by Claude, or both
Slash command
/appcharge-skills:grant-award-callbackThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Implement the Grant Award callback on the publisher backend Appcharge calls after paid or free purchases. Official spec: https://docs.appcharge.com/api-reference/checkout/awards/grant-award-callback.md
Implement the Grant Award callback on the publisher backend Appcharge calls after paid or free purchases. Official spec: https://docs.appcharge.com/api-reference/checkout/awards/grant-award-callback.md
publisherPurchaseId, or post-purchase webhooknet/http, Gin, Echo) or Python (FastAPI, Flask). Match existing routing, middleware, and config patterns.curl commands in references/api-contract.md and secure communication; implement from the fetched markdown only.signature → validate x-publisher-token → parse JSON.POST only. Default path suggestion: /callbacks/grant-award (align with repo conventions if present).orderId / purchaseId:
playerId, credit products, persist publisher-side purchase IDaction purchase vs bonus; respect awardFlow manual_retry if applicablesessionMetadata if the game stores JSON there200 + { "publisherPurchaseId": "<your-transaction-id>" }400 + publisherErrorMessage500 + publisherErrorMessage401/403; missing publisherPurchaseId on success path forbidden.APPCHARGE_PUBLISHER_TOKEN, APPCHARGE_MAIN_KEY, and the public callback URL for the Publisher Dashboard.Delegate to existing inventory/wallet services; do not duplicate domain logic in the HTTP layer.
verify(headers, rawBody) → parse(PlayerOrderReportRequest) → grant(order) → JSON 200
authenticate-player-callback — supplies playerId and sessionMetadatapersonalize-webstore-callback — optional; uses same sessionMetadata when enabledProvides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
npx claudepluginhub appcharge/appcharge-skills --plugin appcharge-skills