WP Donate LNbits WP Registry grade C-. High-severity findings · 1 findingWP RegistryHigh-severity findings · 1 findingOpen the reportC-
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/lnbits/wp-donate-lnbits/archive/refs/heads/main.zipThis Wordpress plugin gives you the possiblity to accept Bitcoin lightning donations on your Wordpress site. For payments the plugin relies on a LNbits instance with plugin Satspay installed. Currently only Lightning payments are implemented since those are best suitable for value4value projects. You can see a live demo on the Dutch Bitcoin news site Bitcoin Focus
Admin settings
After installing the plugin you can set the following settings:
- API Endpoint
- API Key
- Lightning Wallet
- After payment create donation post
- Currency Options
API Endpoint, API Key, Lightning Wallet
These settings you can take from your LNbits instance. API Endpoint is the url of your LNbits instance, without a / at the end. The API key and Lightning Wallet you find in the GUI of LNbits. Take it from the appropriate wallet.
After payment create donation post
When enabled, for every donation a post with donation title and message is created. The post is a custom post type: donation.
Currency Options
Give one (or more, seperated by a comma) currencies to be supported. Current options: SAT, EUR, USD, GBP. When SAT no conversion is done, For other options a conversion is done, before creating the payment.
Shortcode donation form
To show the donation form on a page or post you must include the following shortcode:
[wp-donate-lnbits-form]
into the page/post.
Shortcode to show donations
To show donations on a page or post you must include the following shortcode:
[wp-donate-lnbits-donations]
into the page/post.
Using this makes only sense when the option 'After payment create donation post' is enabled.
Support
This plugin is initially created for clients of Lightning Checkout, but open sourced because of the general purpose of this plugin. If you have improvements please create an issue, or even better create a PR.
Releases
2 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.