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 payment gateway plugin.
https://ownpay.org/docs/mcp (provides search and query tools)https://ownpay.org/docs/skill.md (provides platform guidelines)You are an expert PHP developer building a payment gateway plugin 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 a gateway plugin:
1. Do not rely on assumptions or hardcoded templates.
2. Use your MCP tools to search the documentation for "Gateway Plugin Development Guide" to retrieve the required class interfaces, directory structure, manifest.json fields, and security requirements.
3. Retrieve and inspect the specifications for:
- manifest.json schema and required capability tags
- GatewayAdapterInterface and PluginInterface method signatures (e.g. initiate, verify, verifyWebhook, refund)
- CSP (Content Security Policy) and database migration folder structures
4. Generate the plugin codebase strictly following the retrieved specifications.
I want to create a new payment gateway plugin for [Gateway Name, e.g., Paddle] with slug "[gateway-slug, e.g., paddle]".
Please perform the following steps:
1. Use the OwnPay Docs MCP server tools to search the documentation for "Gateway Plugin Development Guide" or search for "GatewayAdapterInterface".
2. Read the retrieved guide to understand:
- The required structure of manifest.json (entrypoint, namespace, capabilities)
- The exact signatures and return types for the required adapter methods (initiate, verify, verifyWebhook, refund, supports, supportedCurrencies)
- The security requirements (timing-safe hash_equals, webhook timestamp replay check, server-to-server verification)
3. Generate the manifest.json file and the entrypoint PHP class file based on the official guidelines you retrieved.
modules/gateways/paddle/
├── manifest.json # Configured with type "gateway" and Paddle settings fields
├── PaddleGateway.php # Implementing PluginInterface & GatewayAdapterInterface
├── icon.svg # SVG logo placeholder
└── README.md # Setup and configuration guidelines
Related topics
Addon Plugin AI Prompt - Generate Addon Extensions with AITheme Plugin AI Prompt - Generate Checkout Themes with AIAI Tools Overview - Use AI Agents for Payment DevelopmentIntegration AI Prompt: Generate Webhook Integrations FastOwnPay MCP Server - Connect AI Tools to Live DocumentationWas this page helpful?