/xsolla-ai-kit:productionfrom xsolla-ai-kit
Guides developers through moving Xsolla payments from sandbox to live production, including licensing agreement, tax interview, config flip, webhook setup, and live payment checklist.
Ships in xsolla-ai-kit. 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.
Move a working sandbox payment integration to real-money payments. The steps are the same whether the payment UI is Headless Checkout or Pay Station. Most steps are manual for the developer; the agent prepares config, checks for contract errors, and hands a test plan — it cannot complete live card or wallet payments.
Docs: Legal aspects (Licensing Agreement)
0002-0004 / support_code 00020004Mint a production payment token the same way this integration already mints
a sandbox token (omit sandbox / set sandbox: false). Then hit Pay Station
utils with that token:
GET https://secure.xsolla.com/paystation2/api/utils?access_token={TOKEN}
If the licensing agreement is missing, expect an error like:
{
"errors": [
{
"message": "We're experiencing a technical issue…",
"support_code": "00020004"
}
]
}
(Also reported as 0002-0004 / Merchant contract not signed.)
If utils succeeds without that error, the merchant can issue production tokens — continue to config flip + deploy.
Ask the developer to complete Agreements in Publisher Account:
https://publisher.xsolla.com/{XSOLLA_MERCHANT_ID}/agreement
(XSOLLA_MERCHANT_ID from .env — see merchant-setup.)
Follow the PA flow (Complete application form, company/individual details). Xsolla reviews (often a few business days). After approval, status becomes Signed. Then complete the Tax interview (W-8 / W-9) under Agreements & taxes — required for live payouts/reporting.
Re-run Step 1 (production token → utils). The contract error must be gone.
Keep a single env/config switch so sandbox ↔ production stays easy (do not hard-delete sandbox code paths). Change only the rows for the payment UI this shop uses.
Typical changes:
| Area | Sandbox | Production |
|---|---|---|
| Env | XSOLLA_SANDBOX=true (or equivalent) | false / unset per project convention |
| Token body | "sandbox": true / settings.mode: "sandbox" | omit sandbox / sandbox: false |
| Headless SDK | init({ sandbox: true, … }) | sandbox: false |
| Pay Station / return URLs | localhost / staging | public HTTPS production URLs |
| Webhook URL in PA | tunnel or staging | stable public HTTPS listener (webhooks-impl) |
Update .env (and hosting secrets). Redeploy. Confirm a production token still
passes utils (Step 1).
Anything Xsolla must call, and any page the player returns to, has to be on the public internet over HTTPS. Localhost and ephemeral tunnels are not a go-live setup.
webhooks-impl).CLIENT_ORIGIN match the live domain.The agent cannot run real payments. Live flows need real payment accounts and real cards/wallets. The developer must test themselves after deploy.
Same payment UI the shop already uses, but with a real card. Prefer the lowest-priced catalog SKU.
Pass when:
Payment reaches success in the shop UI
A transaction appears under Finance in PA:
https://publisher.xsolla.com/{XSOLLA_MERCHANT_ID}/finance
The buyer receives the good via the shop’s fulfillment path (webhooks-impl
— grant wired to the developer’s inventory)
Also complete (or attempt) live:
(domain / merchant setup for wallets may already be done in sandbox —
Headless Checkout keeps it in that skill's google-pay / apple-pay
references; Pay Station shows the methods on its hosted page.)
Open the other method types the shop offers (redirect, QR, mobile) in the live
UI even if every payment is not finished — sandbox cannot exercise most of
them. For Headless Checkout, the list is in that skill's
references/payment-methods.md.
Start a method that leaves the page (e.g. PayPal), then cancel on the provider side. The shop should land on a failed / canceled terminal status (not success, not hung “processing”).
| Agent can | Agent cannot |
|---|---|
| Flip env/flags, remove sandbox from token paths, keep a toggle | Sign the licensing agreement or tax forms |
Call utils and interpret 00020004 | Charge real cards or finish wallet sheets |
| Hand the developer the PA links + checklist above | Claim “production verified” without their sign-off |
Done when the developer confirms: production token works, live card (min amount) paid, Finance shows the tx, goods granted, PayPal/Google Pay/Apple Pay exercised, and a canceled PayPal (or similar) shows failed.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
15 skills in this plugin
/catalog-designSets up an Xsolla catalog: virtual items, virtual currency and its packages, bundles, game keys, item groups, regional prices and LiveOps offers, plus the client purchase flow (buy by SKU or cart, buy for virtual currency, order status). Use for "set up my Xsolla catalog", "create virtual items", "sell game keys", "regional prices"./description-to-shopTurns a game description or store listing (App Store, Google Play, Steam) into the shop brief that shop-builder-assembly builds from. Reached through nocode-shop-setup; not an entry point. Owns intake and inference only: presets, confirmation, CLI writes and preview belong to shop-builder-assembly./game-web-portalBuilds or resumes an unpublished Game Web Portal for a PC or mobile game: Home, News, Rewards, Web Shop, Community and an optional Launcher, on a site made from the Multi-page web portal template. Reached through nocode-shop-setup. Use for "continue my Game Web Portal" or "add the Community section". Never publishes; that stays with the human. Not for XLA Pages on x.la; use `xla-pages`.npx claudepluginhub xsolla/xsolla-ai-kit --plugin xsolla-ai-kitOther plugins' skills for the same job