Accept USDC payments on Base network through Coinbase Business Payment Links.
This module integrates the Coinbase Business Payment Link API with WHMCS, allowing merchants to accept cryptocurrency payments directly to their Coinbase Business account.
Note: This gateway accepts USDC on Base network only.
- WHMCS installation
- PHP 7.4+ with OpenSSL extension
- Coinbase Business account with CDP API access
-
Clone this repository and run
composer install, or download the build from the releases page -
Copy the
modulesfolder to the root of your WHMCS installation -
Activate the gateway in WHMCS admin:
- Go to Setup > Payments > Payment Gateways > All Payment Gateways
- Click Coinbase Business
- Log into the Coinbase Developer Platform
- Navigate to API Keys and create a new key
- Copy the Key Name and Private Key (EC PEM format)
- In the Coinbase Developer Platform, create a webhook subscription
- Set the endpoint URL to your WHMCS callback (shown in the gateway settings)
- Subscribe to Payment Link events
- Copy the Webhook Secret from the subscription
In the gateway settings, enter:
| Field | Value |
|---|---|
| CDP API Key Name | Your API key name/identifier |
| CDP Private Key | EC Private Key in PEM format |
| Webhook Secret | Secret from webhook subscription |
- Customer clicks "Pay Now" on an invoice
- A Payment Link is created via the Coinbase API
- Customer is redirected to the Coinbase payment page
- Customer pays with USDC on Base network
- Webhook notifies WHMCS when payment completes
- Invoice is automatically marked as paid