Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lnbits/wp-donate-lnbits


https://github.com/lnbits/wp-donate-lnbits

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# WP Donate LNbits
This Wordpress plugin gives you the possiblity to accept Bitcoin lightning donations on your Wordpress site.
For payments the plugin relies on a [LNbits](https://lnbits.com/) 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](https://bitcoinfocus.nl/doneer/)

## 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](https://lightningcheckout.eu/), 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.