Docs
Search the docs
Find a page in the docs

Get started

Build with AI

Give your AI assistant the docs as Markdown, and a prompt that integrates Camel Payment for you.

AI coding assistants work best with plain text. Every page of these docs is also available as Markdown, and the whole set is indexed for LLMs, so your assistant can read the docs itself instead of guessing.

Integrate with one prompt

Copy this prompt into Claude, ChatGPT, Cursor, Copilot, or any assistant that can read your code and open links. It points the assistant at the docs and asks for a complete checkout and webhook integration.

Prompt
Integrate Camel Payment into this project as a payment method.

First read the Camel Payment docs:
- Index: https://camelpayment.com/llms.txt
- Everything in one file: https://camelpayment.com/llms-full.txt

Then implement it, following the docs exactly:
1. Look at this codebase to find the stack and where orders are created. Ask me if it is unclear.
2. On the server, create a hosted checkout with POST https://api.camelpayment.com/v1/checkouts when the customer pays, and redirect them to checkout_url.
3. Read the API key from the CAMEL_API_KEY environment variable. Never send it to the browser.
4. Send an Idempotency-Key header on every POST, derived from the order id.
5. Send amounts as integers in the currency's minor unit (cents).
6. Add a webhook endpoint that verifies X-Webhook-Signature (HMAC-SHA256 of "<t>.<raw body>" with CAMEL_WEBHOOK_SECRET), rejects timestamps older than five minutes, ignores event ids it has already handled, and marks the order paid on checkout.completed.
7. Don't mark an order paid from the success_url redirect alone.
8. Use sandbox keys (pay_test_) while developing.

When you're done, list what I need to set up in the Camel Payment dashboard: a provider connection, an API key, and a webhook endpoint with the events to subscribe to.

Review the changes before you ship them, and test the whole flow in sandbox with a pay_test_ key.

Docs for LLMs

URLWhat it is
https://camelpayment.com/llms.txt An index of every page with a one-line summary, following the llms.txt convention.
https://camelpayment.com/llms-full.txt All the docs in one Markdown file, ready to paste into a chat.
…/docs/<page>.md Any page as Markdown: add .md to its address, for example /docs/webhooks.md.

Copy a single page

Every page has a Copy page button next to its title. It copies the page as Markdown, or opens it in ChatGPT or Claude so you can ask questions about it.