overflowDocs
Dashboard
DocumentationAPI reference

Get started

  • Introduction
  • Quickstart
  • Integrate with AI
  • Agents (MCP)
  • Selling

Payments

  • Checkout
  • Loader
  • Webhooks

Risk and privacy

  • Fraud gate
  • Dispute evidence
  • Privacy
  • Dashboard
  • Sign in

Get started

  • Introduction
  • Quickstart
  • Integrate with AI
  • Agents (MCP)
  • Selling

Payments

  • Checkout
  • Loader
  • Webhooks

Risk and privacy

  • Fraud gate
  • Dispute evidence
  • Privacy

Get started

Integrate with AI

Overflow's docs are published in formats coding agents read well, so you can hand the integration to Claude, Cursor or any other agent.

The prompt

Paste this into your agent from inside the project you want to add payments to. The same prompt, filled in with Overflow's address, is on the Developers page of the dashboard.

You are integrating Overflow, a payment gateway, into this project.

Read the docs written for machines first: https://overflowpay.net/llms-full.txt
(index: https://overflowpay.net/llms.txt, OpenAPI: https://overflowpay.net/openapi.json, any docs page as markdown: add .md to its URL)

Rules that keep the integration safe:
1. Create checkouts on the server only: POST https://overflowpay.net/api/v1/checkouts with the header "Authorization: Bearer $OVERFLOW_SECRET_KEY". Read the key from an environment variable. Never put it in browser code and never commit it.
2. Amounts are integers in the smallest currency unit: 1999 means 19.99.
3. Open the checkout in the browser with the loader: <script src="https://overflowpay.net/v1/overflow.js" async></script>, then Overflow.checkout({id}).open(). Load it from that URL. Do not bundle or self-host it.
4. Fulfil orders from the payment.succeeded webhook, never from the return page. Verify the webhook-signature header against the raw request body before parsing it, and reject timestamps older than 5 minutes.
5. Make the webhook handler idempotent. The same event id can arrive more than once.
6. After delivering what was bought, POST https://overflowpay.net/api/v1/checkouts/{id}/events with what happened (type "delivered", "download" or "login"). This log becomes the evidence if the payment is disputed.
7. Do not add cookies, analytics or tracking around the checkout. The loader stores nothing on your pages. Keep it that way.

Now find where this project sells something and add three things: a server route that creates the checkout, a button that opens it, and a webhook route that marks the order paid. Ask me for anything you cannot find in the code, such as product prices or the public URL of the webhook route.

What agents can read

AddressWhat it is
https://overflowpay.net/llms.txtAn index of every docs page with a one-line summary, in the llms.txt format.
https://overflowpay.net/llms-full.txtAll the docs in one plain-text file. Best starting point for an agent.
https://overflowpay.net/docs/quickstart.mdAny docs page as markdown. Add .md to its address.
https://overflowpay.net/openapi.jsonThe REST API as an OpenAPI 3.1 document, for generating clients and tools.

Every docs page also has a Copy as Markdown button at the top.

Review what the agent wrote

An agent moves fast and payments are easy to get subtly wrong. Before you ship, check that:

  • the secret key is read from the environment and appears nowhere in the client bundle or the repository,
  • the webhook route verifies the signature on the raw body, before any JSON parsing,
  • orders are fulfilled in the webhook route and not on the page the buyer returns to,
  • a repeated webhook does not deliver the order twice.

Then run one test payment end to end.

PreviousQuickstartNextAgents (MCP)

On this page

  • The prompt
  • What agents can read
  • Review what the agent wrote