Prerequisites
- WordPress 6.0+
- WooCommerce 8.0+
- PHP 8.2+
- An OwnPay instance with a valid API key
- OwnPay Gateway Plugin for WooCommerce - download from GitHub Releases
How it works
Installation
Step 1: Install the plugin
Option A: Upload ZIP manually- Download the latest plugin ZIP from GitHub Releases
- Go to WordPress Admin > Plugins > Add New > Upload Plugin
- Upload the ZIP and click Install Now
- Click Activate Plugin
Step 2: Configure the gateway
- Go to WooCommerce > Settings > Payments
- Find OwnPay and click Manage
- Fill in:
- Click Save Changes
Step 3: Configure webhooks in OwnPay
- Log in to your OwnPay Admin panel
- Go to Developer Hub > Webhooks
- Add a new webhook endpoint:
- Select events:
payment.transaction.completed,payment.transaction.failed,payment.transaction.cancelled - Copy the Webhook Secret and paste it into WooCommerce plugin settings
Order status mapping
Customization
Change redirect behavior
Customize payment intent payload
Customize order status on completion
Troubleshooting
Webhooks not received
- Ensure your OwnPay instance can reach
https://yourstore.com/?wc-api=ownpay_gateway - Check WooCommerce > Status > Logs and filter by
ownpay - Verify the Webhook Secret matches in both systems
Orders stuck in “Pending Payment”
This usually means the webhook was not delivered. You can manually sync:- Open the order in WooCommerce Admin
- Click OwnPay > Sync Payment Status