A WHMCS payment gateway module that integrates with the OwnPay payment platform. Customers are redirected to OwnPay's hosted checkout to complete payment, then returned to WHMCS upon completion.
modules/gateways/ownpay.php to your WHMCS installation at <whmcs>/modules/gateways/ownpay.php
modules/gateways/callback/ownpay.php to <whmcs>/modules/gateways/callback/ownpay.php
modules/gateways/ownpay/ directory to <whmcs>/modules/gateways/ownpay/
After installation, your WHMCS directory should contain the following files:
modules/gateways/ownpay.php - Main gateway modulemodules/gateways/ownpay/logo.svg - Default gateway logomodules/gateways/ownpay/lang/english.php - English language stringsmodules/gateways/callback/ownpay.php - Webhook callback handlerOwnPay Base URL - Your OwnPay instance URL (e.g. https://pay.example.com). No trailing slash.
API Key - Your OwnPay API key (begins with op_xxxx.xxxxx). Found in your OwnPay Admin panel under Your Brand > Developer Hub > API Keys.
Webhook Secret - The HMAC-SHA256 secret used for webhook signature verification. The Webhook Callback URL is displayed in this field's description - copy it into your OwnPay webhook settings.
Gateway Logo URL - Optional. URL to a custom logo image to display on the checkout page.
Test Mode - Enable to log all API requests and responses for debugging purposes.
https://your-whmcs-domain.com/modules/gateways/callback/ownpay.php
payment.completed
payment.failed
payment.refunded
All webhooks from OwnPay are verified using HMAC-SHA256 signatures:
X-OP-Signature, X-Signature, or X-OwnPay-Signature request headerhash_equals() for timing-safe comparisonRefunds are processed via the OwnPay API:
The module communicates with the following OwnPay API endpoints on your configured Base URL:
POST /api/v1/payments - Create a payment intentGET /api/v1/payments/{id} - Check payment statusPOST /api/v1/refunds - Process a refundGET /api/v1/transactions/{id} - Retrieve transaction detailsGET /api/v1/health - Connectivity checkEnable Test Mode in the gateway configuration to log all API requests and responses to the WHMCS Gateway Log, accessible under Utilities > Logs > Gateway Log.
"OwnPay gateway is not configured" - Set the Base URL and API Key in the gateway configuration.
"Connection to OwnPay failed" - Verify the Base URL is correct and reachable from your server.
"Signature verification failed" - Ensure the Webhook Secret matches between WHMCS and your OwnPay webhook settings.
"Invoice ID not found in webhook payload" - Verify that the webhook is sending the reference field containing the invoice ID.
Payment not applied after webhook - Check the WHMCS Gateway Log for errors and ensure the callback file is uploaded to the correct path.
This module is released under the MIT License.
Be the first to review OwnPay WHMCS.
The best place to start if you need help with a specific product is to contact the developer. All WHMCS Marketplace developers have both a website and support URL listed.
Easily accept Bitcoin, Tether, Ethereum and many other crypto payments on your WHMCS website
No Fees, Easy Setup. Accept cryptocurrencies like: Bitcoin, Bitcoin Cash, Ethereum and Litecoin!
Open your web site to shopping with the advantages of PayTR. Take your payments securely.
With this WHMCS module, you'll get the payment gateway fees from your clients directly.