Pulse Commissions releases
Bitcoin Lightning Network Commission Plugin for WooCommerce
by BtcPins · github.com/pardus79/pulse-commissions · website
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/pardus79/pulse-commissions/releases/download/v0.2.0/pulse-commissions.zipPulse Commissions - Bitcoin Lightning Network Commission Plugin for WooCommerce
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.
Features
- 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
Requirements
- WordPress 5.0+
- WooCommerce 3.0+
- BTCPayServer instance
- PHP 7.2+
Installation
- 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".
Configuration
- 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.
Generating BTCPayServer API Key
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.canmanagepullpaymentsArchive your pull payments btcpay.store.canarchivepullpaymentsCreate pull payments btcpay.store.cancreatepullpaymentsView your pull payments btcpay.store.canviewpullpaymentsCreate non-approved pull payments btcpay.store.cancreatenonapprovedpullpaymentsManage payouts btcpay.store.canmanagepayoutsView 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.
Finding Your BTCPayServer Store ID
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.
Auto Approve Claims
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.
Enabling Your BTCPayServer Payout Processor
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
Usage
For Store Owners
- 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.
For Commission Recipients
- 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.
Troubleshooting
- 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.
Contributing
Contributions to Pulse Commissions are welcome! Please submit pull requests to the GitHub repository.
License
Pulse Commissions is released under the Unlicense. See the LICENSE file for more details.
Releases
3 releases. Each count is every asset in that release; expand a row for the breakdown.
Active-site estimate ≈20 comes from the median of recent superseded releases. Method.