Integration plugins connect OwnPay to external platforms: CRMs, ERPs, accounting software, analytics dashboards, and notification services. They do not process payments - they react to payment events and push data outbound.
Common use cases
Directory structure
Manifest
Complete example: Slack notification plugin
This plugin sends a message to Slack whenever a payment is completed or fails.
Plugin.php
SlackNotifier.php
Configuration UI
The fields() method defines the settings form that appears in the admin panel. Values are stored per-brand and accessed via SettingsRepository.
Error handling best practices
- Always check if the webhook URL is configured before making outbound calls
- Set a short HTTP timeout (5 seconds) so your hook callback does not block checkout
- Never throw from a hook callback - the error isolation wrapper catches it, but logging is better
- Log failed outbound calls for debugging
Testing
- Install and activate the plugin
- Configure the Slack webhook URL in the plugin settings
- Create a test payment using a test card
- Verify the Slack message arrives
Related pages
Last modified on August 25, 2026