Payment per newspaper article with Bitcoin Lightning

This post is also available in: German

Zahlung je Zeitungsartikel mit Bitcoin Lightning

team

Payment per newspaper article with Bitcoin Lightning

Why do I have to sign an expensive online subscription for a newspaper if I only want to read a specific article? Learn how to settle payment per newspaper article with Bitcoin Lightning. Many readers are aware of the problem. You will find an interesting article, which is either framed by annoying banner advertising or behind a Paywall for which you have to complete an expensive monthly subscription. Even free trial subscriptions require registration with the disclosure of personal data. With Lightning, payments per newspaper item can be offered for a few cents. The reader does not have to register, but executes the payment with one click and can read the article without interruption to the end. The newspaper article is located behind a Paywall and is unlocked with a Bitcoin Lightning payment. This can be implemented with Lightning Publisher for every article published by WordPress.

Application example from the reader’s point of view

We have protected our own item with a paywall. You can access this article at: “Pay a paywall with Lightning“.

Paywall with Lightning

When the reader clicks Pay, the following window opens:

Paywall the payment barrier for wordpress mit_Lightning_Zahlung

The reader has three ways to pay the Lightning invoice. (1) He can transfer the invoice text to his Lightning Wallet, scan the (2) QR code with his mobile app or call up a (3) Browser Extension Wallet by clicking the “Pay with Wallet” button.

Offer Lightning payment per newspaper article

In order to offer news, articles and contributions for a fee, you need the following tools.

The first 4 points, you get, if you set up your own BTCPay server with C-Lightning implementation. You can find instructions on how to run your own BTCPay server in the article “LunaNode Hosting“. This means that you have all the prerequisites to be able to settle your contributions made available via WordPress.

WordPress Plugin “Lightning Publisher for WordPress”

Lightning Publisher for Wordpress

You can search this plugin by searching word press or download it from the Github page https://github.com/ElementsProject/wordpress-lightning-publisher. After installing and activating the plugin, it is available in the WordPress Administration pane under > Lightning Publisher settings. The URL and API token of the Lightning Charge server must be stored in the location.

WordPress Lightning_Publisher_Settings

We go to our BTCPay server in the area of Server Settings. There under Services and Lightning Charge Services. In the Credential area we find the necessary information.

btcpay-Lightning-charge-services

The information from the server from the AuthendicatedUri field is entered in the Server Url field. The information from Uri comes to Public URL and the APIToken comes to API token. Then Save Changes and the configuration is ready.

Lightning_Publisher_Settings_WordPress

Items with a paywall.

After all the technical requirements for setting a paywall have been met, we will create an article that will be offered for a fee. On the page: “Pay with Lightning” we have installed a payment barrier. On this page we will show you how to install a paywall in your WordPress article. Go to a post and switch to the text view.

Payment barrier with WordPress Lightning

In the text view you go to the place from which the post should be paid. At this point you use the shortcode: [ifpaid AMOUNT CURRENCY] For Amount, you use the amount and currency the corresponding currency. Please place the square brackets flush with the text. We had to use a space here to describe the code. Otherwise, the rest of the text would have disappeared behind a paywall. So please do not use a space after which the [ifpaid XXX] For example, you can offer the post for 5 cents, then you have to [ ifpaid 0.05 EUR ]code> enter. If you want to settle the item for 5 Satoshi, then [ ifpaid 0.00000005 BTC ]code> enter. You can also view a specific text and label the corresponding payment button. [ ifpaid 0.05 EUR text="Für nur 5 Cent kannst Du den ganzen Artikel lesen" button="Jetzt mit Bitcoin Lightning bezahlen" ] In the article it looks like this:

Paywall with Lightning

When the reader clicks on the button “Pay now with Bitcoin Lightning”, the following payment window opens:

Paywall the payment barrier for wordpress mit_Lightning_Zahlung

After a successful payment, the page is revisited and displayed in full length. In addition to the solution for WordPress, there are providers where you can put your post or link behind a paywall.

Yalls

At Yalls, you pay for the publication of your article with Lightning. If someone wants to read this article, then you have to pay for reading. These revenues go to the author. To publish an article, you must run your own Lightning Node. The credits then also go to this node. If you only want to read, all you need is a Lightning Wallet. There are different groups at Yalls. Among other things, a group with German-language contributions. German-language contributions to Yalls

LNPay Lightning Paywall Generator

With the Lightning Paywall Generator from LNPay, you create the post on your own page and put the link behind a paywall. If you have registered with LNPay, you can set the link to your post. To do this, specify a brief description and the amount for which the item is to be sold. A new url is then generated, which can be presented to your customers. If paid with Lightning, the reader is redirected to the unlocked url. This article has been deposited with LNPay for demo purposes and can be paid for and activated for 100 Satoshi via this link https://paywall.link/to/8adf8. There are already a variety of ways to get paid for its content. If you run a WordPress page and want to make the content chargeable, then we hope that our guide will help you.

This post is also available in: German