Skip to main content
Integrate OwnPay with your WHMCS billing platform to accept credit cards, debit cards, and local mobile payments directly on hosting and service invoices.

WHMCS Marketplace

Download the official module from the WHMCS Marketplace.

GitHub

View source code, report bugs, or contribute.

Prerequisites

  • WHMCS 8.0+
  • A running OwnPay instance
  • An API key and webhook secret from Developers → API Keys

Installation

Configuration

Enable the gateway

  1. Log in to WHMCS Admin
  2. Navigate to System Settings → Payment Gateways
  3. Click OwnPay to activate it

Configure gateway settings

Under Manage Active Gateways, fill in:

Payment flow

Webhook configuration

  1. Your callback URL is:
  1. In OwnPay, go to Developers → Webhooks and add this URL
  2. Select the payment.completed event
  3. Copy the webhook signing secret into the WHMCS gateway settings

Test mode

Enable Test Mode in the WHMCS gateway settings to use sandbox gateways. Test with card number 4242 4242 4242 4242 for a successful payment.

Supported features

  • Automatic invoice payment on webhook callback
  • Signature verification on every callback
  • Test mode toggle
  • Multi-currency support
  • Refund handling from WHMCS admin

Troubleshooting

If payments are not applied to invoices automatically:
  1. Go to Billing → Gateway Log and filter by ownpay
  2. Check that the webhook secret matches exactly in both OwnPay and WHMCS
  3. Verify your OwnPay instance can reach the callback URL
  4. Enable debug logging in WHMCS for detailed request/response logs
Last modified on August 25, 2026