Pulse Commissions is a WordPress plugin that enables automated item-specific commission payouts for WooCommerce using the Bitcoin Lightning Network and BTCPayServer. It allows store owners to easily manage commission structures for different products with secure, instant, and low-cost payments.
- Item-specific commission setup
- Support for percentage and flat-rate commissions
- Multiple payouts per product
- Automated commission payouts via BTCPayServer
- Integration with WooCommerce for order tracking and commission calculation
- WordPress 5.0+
- WooCommerce 3.0+
- BTCPayServer instance
- PHP 7.2+
- Download the Pulse Commissions plugin ZIP file.
- Log in to your WordPress admin panel and navigate to Plugins > Add New.
- Click "Upload Plugin" and choose the downloaded ZIP file.
- Click "Install Now" and then "Activate Plugin".
- Go to the Pulse Commissions settings page in your WordPress admin panel (Settings > Pulse Commissions).
- Enter your BTCPayServer URL, API Key, and Store ID.
- Set up your payout structures for different products.
- Configure additional settings such as auto-approving claims.
To generate the appropriate API key for Pulse Commissions in BTCPayServer:
- Log in to your BTCPayServer instance.
- Navigate to the "Settings" section.
- Click on "Access Tokens" and then the link under "Greenfield API Keys"
- Click on "Generate Key".
- Set a label for your key (e.g., "Pulse Commissions Plugin").
- Under "Permissions", select the following:
Manage your pull payments btcpay.store.canmanagepullpayments
Archive your pull payments btcpay.store.canarchivepullpayments
Create pull payments btcpay.store.cancreatepullpayments
View your pull payments btcpay.store.canviewpullpayments
Create non-approved pull payments btcpay.store.cancreatenonapprovedpullpayments
Manage payouts btcpay.store.canmanagepayouts
View payouts btcpay.store.canviewpayouts
- Click "Generate" to create the API key.
- Copy the generated API key immediately, as it won't be shown again.
- Paste this API key into the Pulse Commissions plugin settings in your WordPress admin panel.
To find your BTCPayServer Store ID:
- In BTCPayServer, go to "Stores" and select the store you want to use with Pulse Commissions.
- The Store ID is typically visible in the URL of your store's management page.
- It can also be found at Settings > General > Store ID
- Copy this ID and paste it into the Pulse Commissions plugin settings.
Check this box if you want any commission payments to be marked pre-approved upon creation by the plugin and paid by BTCPayServer automatically.
If you leave this unchecked, you will need to manually approve payouts periodically. It's recommended to use this setting as this is beta software and could have bugs.
To enable Lightning (off-chain) payouts:
- In BTCPayServer, go to "Settings" then "Payout Processors".
- Under "Automated Lightning Sender", click "Configure" (Or "Modify" if already enabled).
- Set your desired settings.
- Save
- Set up your BTCPayServer instance and ensure it's properly configured.
- Generate the API key in BTCPayServer as described above.
- Configure the Pulse Commissions plugin settings, including the BTCPayServer URL, API Key, and Store ID.
- Create payout setups for your products in the plugin settings.
- Edit individual products and select the appropriate commission setup.
- Monitor commission payouts through the WooCommerce order interface.
- Provide your Lightning address to the store owner.
- The store owner will set up the commission structure for the products you're associated with.
- Earn commissions on qualifying sales, paid out automatically via the Lightning Network.
- Ensure your BTCPayServer instance is properly configured and accessible.
- Verify that the API key has the correct permissions as listed above.
- Check that the Store ID is correct and matches the store you intend to use.
- Check the WordPress error logs for any issues related to commission calculations or payouts.
- Verify that your WooCommerce settings are correct and that orders are being processed properly.
Contributions to Pulse Commissions are welcome! Please submit pull requests to the GitHub repository.
Pulse Commissions is released under the Unlicense. See the LICENSE file for more details.