PAYCOW / DOCUMENTATION
AI & developer tools
AI agent integration and related resources.
AI Agent Integration Prompt
Choose a prompt that matches the model's context and reasoning capacity
The full prompt gives large coding models the complete architecture. The compact prompt gives 5B-8B models one constrained implementation path so security rules remain visible throughout the task.
Full Architecture Prompt
Large context models
COMPACT SAFE PROMPT · 5B-8B
Less context. Fewer unsafe choices.
A shorter integration contract with a fixed build order, mandatory raw-body signature verification, database idempotency, atomic fulfillment, and ten focused security tests.
- Stops and asks for four missing project facts
- Forbids invented endpoints and frontend fulfillment
- Uses one explicit webhook implementation path
View Compact Prompt Click to expand
# PayCow Compact Safe Integration Prompt For small coding models (5B-8B). Inspect the repository first. Keep the change small. Do not invent endpoints, fields, statuses, or event types. Security rules: - Keep every PayCow credential on the backend. - Derive amount from trusted database data. - Send a stable Idempotency-Key. - Verify HMAC-SHA256 over timestamp + "." + exact rawBody. - Store event.id under a unique database index. - Fulfill only signed payment.paid events with PAID status. - Make fulfillment atomic and exactly once. - Never fulfill from browser polling or webhook.test. Build order: database → backend service → checkout route → raw webhook receiver → dashboard test → focused security tests.