• Home
  • Demo Page
    • Pay-per-Post Blog Post Demo Page
    • Pay-per-View Video Demo Page
    • Pay-per-File Download Demo Page
  • Setup
    • WP Lightning Paywall
    • BTCPay Store
    • Pairing Paywall & Store
    • Customization
  • Add Paywall by:
    • Shortcode
    • Gutenberg
    • Elementor
    • WPBakery
  • Help for User
    • How to pay the Lightning Paywall
    • What is a Lightning Wallet?
    • What is Lightning?
  • FAQ
  • Blog
  • English
    • Deutsch
Wordpress Lightning PaywallWordpress Lightning Paywall
Wordpress Lightning PaywallWordpress Lightning Paywall
  • Home
  • Demo Page
    • Pay-per-Post Blog Post Demo Page
    • Pay-per-View Video Demo Page
    • Pay-per-File Download Demo Page
  • Setup
    • WP Lightning Paywall
    • BTCPay Store
    • Pairing Paywall & Store
    • Customization
  • Add Paywall by:
    • Shortcode
    • Gutenberg
    • Elementor
    • WPBakery
  • Help for User
    • How to pay the Lightning Paywall
    • What is a Lightning Wallet?
    • What is Lightning?
  • FAQ
  • Blog
  • English
    • Deutsch
pairing Lightning paywall btcpay server
pairing Lightning paywall btcpay server

Pairing the Lightning Paywall with the BTCPay Store

March 26, 2021 Documentation 11 Comments

Pairing the Lightning Paywall with the BTCPay Store

For payment processing, the Lightning Paywall uses the functionality of the BTCPay Store.

The prerequisite is the setup of a BTCpay Store. You can find the corresponding instructions under Setup BTCPay Store for Lightning Paywall

After you have set up the BTCPay Store and installed the WP Lightning Paywall Plugin on WordPress, the Lightning Paywall needs to communicate with the BTCPay Store.

This is done by pairing the WP Lightning Paywall Plugin with the BTCpay Store.

The pairing of the WP Lightning Paywall with the BTCPay Store is explained here.

Pairing Lightning Paywall with BTCPay Server unplugged

BTCPay Server Url

Pairing the Lightning Paywall with the BTCPay Store

In the General Settings section of the WP Lightning Paywall plugin, the pairing is started.
In the BTCPay Server Url field, enter the url of the BTCPay server where the BTCPay store to be used is located.

After entering the url of the corresponding BTCPay server, a link will appear.

We click on this link and are redirected to the required area of the BTCPay server.

If you are already registered on the BTCPay server, you will be redirected to this section. Otherwise, a login is required.

BTCPay Server Url API Key

BTCPay Server API Key

API Key personal setting

We need a total of two API Keys for the communication between the WP Lightning Paywall Plugin and the corresponding BTCPay Store.

One API key to create an invoice and another API key to view the invoice.

Accordingly, we click on the green button with the text. “+ Generate a new key“

We get to an overview with a variety of applications.

At this point, we determine which applications the Lightning Paywall is allowed to run.

It is not necessary that the Lightning Paywall receives permission for all of these applications.

In the first step we create the API key for creating an Invoice (View Invoice).
Therefore we give this API key the label: “View Invoice Lightning Paywall“. You can also choose your own label.

After that you set a check mark at View Invoices.

API Key Permission View Invoices
View Invoices select specific stores

After you check the box, click on “Select specific stores” and select the BTCPay store for which you want to grant the permission.

If you have multiple BTCPay stores set up on the BTCPay server, then select which specific store you want to grant permission for.

In our case, we select the store that we call Lightning Paywall.

After that we go to the bottom of the page and click on the green button labeled “Generate API Key”.

An API key is generated. However, the required key is not displayed directly.
For this it is necessary to click on “Click to reveal“.

View Invoice Lightning Paywall
create invoice API Key

Now we repeat the process again and create the second API key to create an invoice.

Again, we create a unique label. To distinguish it with the label “Create Invoice Lightning Paywall“.

Check the “Create an Invoice” box and select our BTCPay store via “Select specific stores“, then at the bottom of the page via “Generate API Key” we also create the second key.

We have now created a total of two API Keys. To get the API Keys displayed, click on “Click to reveal“.

API Key for lightning paywall
insert BTCpay API key into WP lightning paywall

The respective API key must now be copied and pasted into the corresponding fields in the WP Lightning Paywall plugin.
It is important to make sure that the correct API key is pasted into the correct field.

Then we click on Safe and then perform a check to see if the pairing was successful.

We click on “Check BTCPay Server Status“. If after that in green font appears the text.: “BTCPAY SERVER CONNECTED” appears, then everything was done correctly.

BTCpay server API key for WP lightning Paywall
Pairing Lightning Paywall with BTCPay Server plugged

After you have successfully paired the WordPress Lightning Paywall plugin with the BTCPay server, you can start adding the Lightning Paywall to the individual the Blog Post or WordPress pages.
How to add a Lightning Paywall to a blog post, you can find in the post “Add Lightning Paywall to your blog post”.

Further information

Documentation for publishers:

  • Set up WordPress Lightning Paywall
  • Setup BTCPay Store for Lightning Paywall
  • Pairing the Lightning Paywall with the BTCPay Store
  • Add WP Lightning Paywall to your blog post by:
    • Shortcode
    • Gutenberg
    • WPBakery (formerly Visual composer)
    • Elementor

Demo Page:

  • Pay-per-Post Blog Post Demo Page
  • Pay-per-View Video Demo Page
  • Pay-per-File (coming soon)
  • Donation (coming soon)

Help for readers and users:

  • How to pay for a blog post
  • What is a Lightning Wallet
    • BlueWallet
    • Breez Wallet
    • Muun Wallet
    • Phoenix Wallet
    • Wallet of Satoshi
  • What is Lightning
  • Lightning is Digital Cash
11 Comments
Share
0

You also might be interested in

Bitcoin Lightning
Bitcoin Lightning

What is Lightning?

Feb 4, 2021

What is Lightning? You can pay for blog posts with[...]

Gutenberg Editor
Gutenberg Editor

Add WP Lightning Paywall by Gutenberg

Apr 23, 2021

Add WP Lightning Paywall by Gutenberg In this tutorial we[...]

pay per post with Bitcoin over the lightning Network
pay per post with Bitcoin over the lightning Network

Setup WordPress Lightning Paywall

Feb 9, 2021

Setup WordPress Lightning Paywall Lightning Paywall becomes BTCPayWall. Please go[...]

11 Comments

Leave your reply.

Leave a Reply

Your email is safe with us.
Cancel Reply

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Send Message

Contact Info

  • Coincharge by internetactive GmbH
  • Willemerstrasse 4, 63067 Offenbach, Germany
  • +49 69-34869328
  • lightning-paywall@coincharge.io
  • https://lightning-paywall.coincharge.io
Wordpress Lightning Paywall

Wordpress Lightning Paywall

Tipping me

[lnpw_tipping]

© 2023 — Wordpress Lightning Paywall for BTCPay Server by Coincharge

  • Home
Prev Next
  • English
  • German