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.
Agent skills
Section titled “Agent skills”| 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.
Other resources
Section titled “Other resources”| 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 |
Install the skills
Section titled “Install the skills”Claude Code
Section titled “Claude Code”Run in the project directory (or install into ~/.claude/skills to use them in every project):
mkdir -p .claude/skillscurl -fsSL https://docs.flowpayra.com/skills/flowpayra-integration.tar.gz | tar -xz -C .claude/skillscurl -fsSL https://docs.flowpayra.com/skills/flowpayra-deploy.tar.gz | tar -xz -C .claude/skillsClaude 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:
rm -rf .claude/skills/flowpayra-integrationcurl -fsSL https://docs.flowpayra.com/skills/flowpayra-integration.tar.gz | tar -xz -C .claude/skillsThe Claude apps (web and desktop)
Section titled “The Claude apps (web and desktop)”- Download the zip from the table above; do not unpack it.
- 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.
- Open Customize → Skills, click +, then Create skill, then Upload a skill, and choose the zip.
- 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.
Other agents
Section titled “Other agents”- 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.mdto the project’s agent instructions (AGENTS.md,.cursor/rules/or the equivalent) and tell the agent wherereferences/is (for examplehttps://docs.flowpayra.com/skills/flowpayra-integration/references/webhooks.md), or give ithttps://docs.flowpayra.com/llms.txtand ask it to read the skill and the integration guide first.
What to tell the agent
Section titled “What to tell the agent”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 stepsI have to do myself in the browser or in my secret store.Review what the agent produced
Section titled “Review what the agent produced”Check these points before going live. They are the ones that cause incidents:
- The webhook handler verifies the signature over the raw request body, before parsing JSON, and rejects stale timestamps.
- Events are deduplicated by
id, and the handler answers 2xx within 10 seconds. - Fulfilment happens only from the webhook or from
GET /v1/orders/{id}, never from the return URL. - Every create request carries a stable
Idempotency-Key, reused on retry. - Amounts are sent as decimal strings.
risk_flag,duplicate_paid,revertedand refunds are handled.- 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.