# QuataPay AI integration kit Teach your AI coding assistant how to connect a website or app to QuataPay (Cameroon, XAF, MTN Mobile Money, wallet): create a hosted-checkout payment, redirect, verify signed webhooks, test in the sandbox, go live. The assistant asks which language and framework you use, then writes the integration, the webhook route and a test. There are no packages to install. Each tool just needs a text file in the right folder. Everything is generated from the same facts as the developer docs at https://quatapay.com/developer, and checked by a test. Nothing in this kit contains a key or secret. You keep your key in the `QUATAPAY_API_KEY` environment variable and the webhook secret in `QUATAPAY_WEBHOOK_SECRET`. ## Quickest: no install at all Open https://quatapay.com/developer, press **Copy master prompt**, paste it into any assistant. Or fetch it as text: `curl -fsSL https://quatapay.com/developer/master-prompt.txt`. A copy is also in this folder: `master-prompt.txt`. ## Install per tool Run these in the root of YOUR project. Two sources: a checkout of the QuataPay repository (`cp`), or the site (`curl`, which works once the developer-docs release that serves `https://quatapay.com/developer/ai/` is live). ### Claude Code (skill quatapay-integration) Run in your project root. For all projects use ~/.claude/skills/ instead of .claude/skills/. Claude Code loads it when you mention QuataPay or payments in Cameroon. ```sh # from a checkout of the QuataPay repository mkdir -p .claude/skills && cp -R /path/to/QuataPay/Apps/integrations/ai-skills/claude-code/quatapay-integration .claude/skills/ # or from the site for f in SKILL.md references/endpoints.md references/webhook-verification.md examples/node.md examples/python.md examples/php.md examples/ruby.md examples/go.md examples/java.md examples/csharp.md examples/curl.md; do mkdir -p ".claude/skills/quatapay-integration/$(dirname "$f")" curl -fsSL "https://quatapay.com/developer/ai/claude-code/quatapay-integration/$f" -o ".claude/skills/quatapay-integration/$f" done ``` ### Codex, Windsurf and other agents that read AGENTS.md If you already have an AGENTS.md, append with >> instead of overwriting. ```sh curl -fsSL https://quatapay.com/developer/ai/AGENTS.md -o AGENTS.md # or: cp /path/to/QuataPay/Apps/integrations/ai-skills/AGENTS.md AGENTS.md ``` ### Cursor The rule is Agent Requested: Cursor applies it when the task is about QuataPay. Set alwaysApply: true in the file to force it. ```sh mkdir -p .cursor/rules curl -fsSL https://quatapay.com/developer/ai/cursor/.cursor/rules/quatapay.mdc -o .cursor/rules/quatapay.mdc # or: cp /path/to/QuataPay/Apps/integrations/ai-skills/cursor/.cursor/rules/quatapay.mdc .cursor/rules/ ``` ### Windsurf Windsurf also reads AGENTS.md, so the step above works there too. ```sh mkdir -p .windsurf/rules curl -fsSL https://quatapay.com/developer/ai/windsurf/.windsurf/rules/quatapay.md -o .windsurf/rules/quatapay.md # or: cp /path/to/QuataPay/Apps/integrations/ai-skills/windsurf/.windsurf/rules/quatapay.md .windsurf/rules/ ``` ### GitHub Copilot, ChatGPT, Gemini, anything else Paste the master prompt into the chat, or save it as the instructions file your tool reads. ```sh mkdir -p .github curl -fsSL https://quatapay.com/developer/master-prompt.txt -o .github/copilot-instructions.md ``` ## What the assistant will do 1. Ask your language, framework and where your secrets live. 2. Write a server-side function that creates the payment (sandbox first), the redirect, the return pages and a webhook route that verifies the signature and ignores duplicates. 3. Add `.env.example` and tests (signature test vector, duplicate delivery, bad signature, stale timestamp). 4. List the manual steps for you: create a test API key and a webhook endpoint in the merchant panel (https://quatapay.com/merchant/developer/keys), then set the two environment variables. ## Honest limits - Live today: QuataPay wallet and MTN Mobile Money. Orange Money, bank transfer, international cards and payouts to MoMo are coming soon. - QuataPay has no WordPress/WooCommerce plugin yet; the assistant will say so and offer a payment link or a custom plugin. - The Node and Python SDKs in the repository only call live paths, so the assistant uses plain HTTP while you test. - Refunds are made in the merchant panel; there is no refund endpoint for API keys yet. ## Files - `AGENTS.md`: rules for Codex and generic agents - `claude-code/quatapay-integration/`: Claude Code skill (`SKILL.md`, `references/`, `examples/`) - `cursor/.cursor/rules/quatapay.mdc`: Cursor rule - `windsurf/.windsurf/rules/quatapay.md`: Windsurf rule - `master-prompt.txt`: the full prompt, same as https://quatapay.com/developer/master-prompt.txt ## Maintainers These files are generated. Do not edit them by hand: change `frontend/lib/developer/facts.ts`, `examples.ts` or `master-prompt.ts`, then run `UPDATE_AI_SKILLS=1 npx vitest run --maxWorkers=2 lib/developer/skill-package.test.ts` from `frontend/`. The test fails when a committed file differs from the generated one.