This 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
After installing the plugin you can set the following settings:
- API Endpoint
- API Key
- Lightning Wallet
- After payment create donation post
- Currency Options
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.
When enabled, for every donation a post with donation title and message is created. The post is a custom post type: donation.
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.
To show the donation form on a page or post you must include the following shortcode:
[wp-donate-lnbits-form]
into the page/post.
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.
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.