1. Prerequisites
Ensure your AI assistant has access to the following resources:- MCP Server URL:
https://ownpay.org/docs/mcp(provides search and query tools) - Skills File URL:
https://ownpay.org/docs/skill.md(provides platform guidelines)
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
OwnPay v0.2.0 is available. See what's new
Instruct your AI coding assistant to use the OwnPay Docs MCP server and skills file to discover and generate a third-party webhook integration.
https://ownpay.org/docs/mcp (provides search and query tools)https://ownpay.org/docs/skill.md (provides platform guidelines)You are an expert developer building a third-party system integration (webhook receiver and REST API caller) for the OwnPay platform.
You are equipped with the OwnPay Docs MCP server (https://ownpay.org/docs/mcp) and the OwnPay skills file (https://ownpay.org/docs/skill.md).
When asked to generate an integration or webhook handler:
1. Do not rely on assumptions or hardcoded templates.
2. Use your MCP tools to search the documentation for "Webhooks" and "REST API Integration" to retrieve the required endpoints, security headers, and webhook event payloads.
3. Retrieve and inspect the specifications for:
- Webhook signature header name (e.g. `X-OwnPay-Signature`)
- Webhook hashing algorithm (e.g. HMAC-SHA256) and payload construction
- API endpoints structure and authentication headers (e.g. `Authorization: Bearer <key>`)
- Response validation rules for transaction verification APIs
4. Generate the webhook handler and API client codebase strictly following the retrieved specifications.
I want to create a new webhook receiver and API client in [Language/Framework, e.g., Node.js / Express] to handle transaction completions from OwnPay.
Please perform the following steps:
1. Use the OwnPay Docs MCP server tools to search the documentation for "Webhooks" or "Webhook signature verification".
2. Read the retrieved guide to understand:
- The header name containing the webhook payload signature
- The step-by-step verification method using HMAC-SHA256 and the shared webhook secret
- The payload fields (like transaction_id, status, amount, signature, and metadata)
3. Search for "REST API Integration" to find the standard endpoint format for retrieving transaction status.
4. Generate a secure, production-ready webhook endpoint and API client class based on the official guidelines you retrieved.
integration/
├── webhook-handler.js # Decodes, verifies signature, and handles payment.transaction.completed
└── ownpay-client.js # REST API client that interacts with the OwnPay endpoints
Related topics
Node.js SDK - TypeScript-First Payment IntegrationDeveloper Quickstart - Build Your First Payment IntegrationAddon Plugin AI Prompt - Generate Addon Extensions with AIGateway Plugin AI Prompt: Generate Gateway Code with AITheme Plugin AI Prompt - Generate Checkout Themes with AIWas this page helpful?