Skip to content

Use a coding agent

If you write integration code or deploy FlowPayra Lite with a coding agent (Claude Code, Cursor, Codex, Copilot or similar), give it the resources on this page. They contain the steps, the rules that are easy to get wrong, and checklists, in a form an agent can follow.

Skill Purpose Download
flowpayra-integration Business integration: creating orders and subscriptions, redirecting to or embedding the checkout, verifying webhooks and return URLs, fulfilling from server state, and handling duplicate payments, refunds, frozen payments, plan changes and the risk address list API SKILL.md · zip · tar.gz
flowpayra-deploy Deployment and operations: installation, configuration, the master key, the first admin, chains and RPC nodes, quote signer keys, merchant contracts, gas and the hot wallet, monitoring, backups, upgrades and test mode SKILL.md · zip · tar.gz

Each skill is a folder. SKILL.md gives the whole flow and the rules; references/ holds the details by topic, which the agent reads only when it needs them. The integration skill also carries scripts/: the signature helpers in five languages (Node.js, Python, Go, PHP, Java) and their test vectors. The skills are written in English, which agents use directly.

Every build of this documentation checks the skills: the endpoints, event types and error codes they name must exist in the OpenAPI specification, and the integration skill must list every event type and error code, so the skills stay in step with the published API.

Resource URL Purpose
llms.txt /llms.txt Index of this documentation for language models
llms-full.txt /llms-full.txt The whole documentation in one text file
OpenAPI specification /openapi.yaml Every endpoint, field, status code and error code. A running deployment serves its own copy at GET /v1/openapi.yaml
Signature helpers /examples/ Webhook and return-URL verification for Node.js, Python, Go, PHP and Java, with test vectors

Run in the project directory (or install into ~/.claude/skills to use them in every project):

Terminal window
mkdir -p .claude/skills
curl -fsSL https://docs.flowpayra.com/skills/flowpayra-integration.tar.gz | tar -xz -C .claude/skills
curl -fsSL https://docs.flowpayra.com/skills/flowpayra-deploy.tar.gz | tar -xz -C .claude/skills

Claude Code loads the matching skill when a task concerns FlowPayra. You can also invoke them by name: /flowpayra-integration, /flowpayra-deploy.

To update, remove the old folder first and run the same command, so that files removed from the skill do not linger:

Terminal window
rm -rf .claude/skills/flowpayra-integration
curl -fsSL https://docs.flowpayra.com/skills/flowpayra-integration.tar.gz | tar -xz -C .claude/skills
  1. Download the zip from the table above; do not unpack it.
  2. Make sure code execution is on under Settings → Capabilities (Code execution and file creation); on Team and Enterprise plans an organization owner turns it on.
  3. Open Customize → Skills, click +, then Create skill, then Upload a skill, and choose the zip.
  4. Check that the skill’s switch is on.

The Claude apps limit a skill’s description to 200 characters, so the SKILL.md in the zip carries a shorter description; everything else is the same as in the tar.gz.

  • Agents that support the Agent Skills specification: place the unpacked folder where the agent’s documentation says it reads skills from.
  • Agents without a skill mechanism: add the content of SKILL.md to the project’s agent instructions (AGENTS.md, .cursor/rules/ or the equivalent) and tell the agent where references/ is (for example https://docs.flowpayra.com/skills/flowpayra-integration/references/webhooks.md), or give it https://docs.flowpayra.com/llms.txt and ask it to read the skill and the integration guide first.

The integration code needs four things from you. Provide them as environment variables or through your secret store, not in the prompt:

Name Value
FLOWPAY_BASE_URL The public URL of your deployment, for example https://pay.example.com
FLOWPAY_API_KEY A test key (fpk_test_…) while building
FLOWPAY_WEBHOOK_SECRET The test webhook secret (whsec_…) from the console
Webhook URL The public HTTPS address of the endpoint the agent will add; enter it in the console under Developers → Webhooks

For deployment and operations the agent usually needs shell access to the server, the domain and the database details. Console sign-in and sensitive console operations need a passkey or security key and step-up verification each time, so a person does those in the browser: the skill has the agent prepare and explain these steps rather than perform them. Do not paste the master key, private keys or API keys into the conversation.

A prompt that works (integration):

Add FlowPayra Lite payments to this project, following the flowpayra-integration skill.
- Create a FlowPayra order when the customer checks out and redirect them to checkout_url.
- Add a webhook endpoint at /flowpay/webhook that verifies FlowPay-Signature on the raw body,
deduplicates by event id and fulfils the order on order.paid after re-reading the order.
- Add the return page (display only) and an event-feed fallback job.
- Read FLOWPAY_BASE_URL, FLOWPAY_API_KEY and FLOWPAY_WEBHOOK_SECRET from the environment.
- Test the signature code against the skill's scripts/vectors.json.

A prompt that works (deployment):

Deploy FlowPayra Lite on this server with docker compose, following the flowpayra-deploy skill.
The domain is pay.example.com, behind a Caddy reverse proxy. Before you start, list the steps
I have to do myself in the browser or in my secret store.

Check these points before going live. They are the ones that cause incidents:

  1. The webhook handler verifies the signature over the raw request body, before parsing JSON, and rejects stale timestamps.
  2. Events are deduplicated by id, and the handler answers 2xx within 10 seconds.
  3. Fulfilment happens only from the webhook or from GET /v1/orders/{id}, never from the return URL.
  4. Every create request carries a stable Idempotency-Key, reused on retry.
  5. Amounts are sent as decimal strings.
  6. risk_flag, duplicate_paid, reverted and refunds are handled.
  7. No key or secret appears in the code, the logs or the repository.

Then follow the go-live checklist in the integration guide and test in test mode. For a deployment, check the configuration, the backups and the safekeeping of the master key against Deployment.