Skip to main content
This guide explains how to integrate OwnPay as a payment gateway in a WordPress WooCommerce store using the OwnPay Gateway Plugin for WooCommerce.

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
  1. Download the latest plugin ZIP from GitHub Releases
  2. Go to WordPress Admin > Plugins > Add New > Upload Plugin
  3. Upload the ZIP and click Install Now
  4. Click Activate Plugin
Option B: Install via WP-CLI

Step 2: Configure the gateway

  1. Go to WooCommerce > Settings > Payments
  2. Find OwnPay and click Manage
  3. Fill in:
  1. Click Save Changes

Step 3: Configure webhooks in OwnPay

  1. Log in to your OwnPay Admin panel
  2. Go to Developer Hub > Webhooks
  3. Add a new webhook endpoint:
  1. Select events: payment.transaction.completed, payment.transaction.failed, payment.transaction.cancelled
  2. 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:
  1. Open the order in WooCommerce Admin
  2. Click OwnPay > Sync Payment Status
Or via WP-CLI:

See Also

Last modified on July 15, 2026