Choose Codex or Claude Code. The private source bundle provides a payment integration skill and the local MCP server. Build the authorized source checkout and register its marketplace first; it is not listed in the public plugin directory yet.
Then open the host’s plugin browser, select KH Payment, and install it. Restart the agent session. Configure your test API key through the host process environment or an owner-only local file; never paste it into the prompt.
From the source checkout
npm run build:all
# Codex
codex plugin marketplace add .
codex plugin add khpayment@khpayment-preview
# Claude Code
claude plugin marketplace add ./
claude plugin install khpayment@khpayment-previewAsk for the whole integration
“Implement this QR code payment for me. Create the server endpoint, checkout and polling, handle rate limits, and verify it from A to Z.”
The agent inspects your app, binds payments to authenticated orders, keeps keys server-side and adds bounded polling. Creating a payment through the MCP itself still requires the host’s human confirmation. Live creation is disabled in this preview plugin.
The local launcher needs KHPAYMENT_WORKSPACE, KHPAYMENT_BASE_URL and KHPAYMENT_API_KEY. GUI hosts can use an owner-only ~/.config/khpayment/plugin.json. Run the bundle’s configure script using a private input file or secret manager; credentials are never bundled with the plugin.
Polling guide · Security guide