# AI coding assistants

> Integrate Cryptonly with Claude Code, Cursor, Codex, or Copilot: a ready-made prompt and the Markdown docs, llms.txt, and OpenAPI schema assistants read.

You can hand the integration to an AI coding assistant such as Claude Code, Cursor, Codex, or GitHub Copilot. The documentation is published in plain Markdown for them, so the assistant reads the same guides you do.

## Prompt to start with

Paste this into your assistant from the root of your project:

```text
Integrate Cryptonly crypto payments into this project.

Start with https://docs.cryptonly.net/llms.txt and open the pages you need; every link there is a Markdown page. The API schema is https://api.cryptonly.net/tenant-api-docs-yaml.

- If the shop runs on a platform with a Cryptonly plugin (WooCommerce, WHMCS, Blesta, FOSSBilling, Paymenter, Medusa, Vendure, FluentCart), set up the plugin instead of writing custom code.
- On a Node.js / TypeScript backend use @cryptonly/sdk; otherwise call the REST API.
- Work against the sandbox: https://sandbox-api-merchant.cryptonly.net, or sandbox: true in the SDK.
- Read the API key and the webhook signing key from CRYPTONLY_API_KEY and CRYPTONLY_WEBHOOK_SECRET. Never hard-code them.
- Create one invoice per order with my order ID as orderId, and send the customer to paymentPageUrl.
- Handle the invoice.statusChanged webhook: verify x-webhook-signature against the raw request body, and fulfil orders by the rules in https://docs.cryptonly.net/guides/invoices/statuses.md.
- Tell me how to test the whole flow with Simulate payment in the sandbox dashboard.
```

Adjust the list to your case. For pay-per-request APIs and AI agents that pay you, point the assistant at [x402 payments](https://docs.cryptonly.net/guides/x402.md) instead.

<Aside type="caution">
Give the assistant sandbox credentials only, and keep them in environment variables or a local `.env` file. Don't paste production API keys or the webhook signing key into a chat.
</Aside>

## What assistants can read

| Source | URL | Use it for |
| --- | --- | --- |
| Index | [docs.cryptonly.net/llms.txt](https://docs.cryptonly.net/llms.txt) | A list of every page with a one-line summary. The best starting point. |
| Full text | [docs.cryptonly.net/llms-full.txt](https://docs.cryptonly.net/llms-full.txt) | All guides in one file, for assistants that take a large context. |
| Single page | Add `.md` to a page URL, e.g. [docs.cryptonly.net/quickstart.md](https://docs.cryptonly.net/quickstart.md) | One guide in Markdown. |
| OpenAPI schema | [api.cryptonly.net/tenant-api-docs-yaml](https://api.cryptonly.net/tenant-api-docs-yaml) | Every endpoint, request, and response field. |
| SDK | [`@cryptonly/sdk`](https://www.npmjs.com/package/@cryptonly/sdk) | A typed client, so the assistant gets field names from the types. |
| Context7 | [`/llmstxt/cryptonly_net_llms-full_txt`](https://context7.com/llmstxt/cryptonly_net_llms-full_txt) | Up-to-date docs inside Cursor, Claude Code, and other clients with the Context7 MCP server. Add "use context7" to your prompt. |

Every guide also has a **Copy page** menu next to its title: copy the page as Markdown, open it as Markdown, or open it in ChatGPT or Claude.

## Next steps

- [Quickstart](https://docs.cryptonly.net/quickstart.md): The flow the prompt builds, step by step
- [Invoice statuses](https://docs.cryptonly.net/guides/invoices/statuses.md): Which statuses to fulfil on
- [Testing your integration](https://docs.cryptonly.net/guides/testing-your-integration.md): Sandbox scenarios to run before going live
- [Plugins](https://docs.cryptonly.net/integration/plugins.md): Ready-made checkout plugins
