# Coinsnap Paywall #
![Coinsnap Paywall Plugin for Wordpress](https://resources.coinsnap.org/products/paywall/images/cover.png)

## Wordpress plugin for implementing Paywall using Coinsnap and BTCPay ##

* Contributors: coinsnap
* Tags: Lightning, Lightning Payment, SATS, Satoshi sats, bitcoin, Wordpress, Paywall, BTCPay, accept bitcoin, bitcoin plugin, bitcoin payment processor, bitcoin e-commerce, Lightning Network, cryptocurrency, lightning payment processor
* Requires at least: 5.2
* Tested up to: 6.7.1
* Requires PHP: 8.0
* Stable tag: 1.0.0
* License: GPL2
* License URI: https://www.gnu.org/licenses/gpl-2.0.html

The Coinsnap Paywall plugin allows you to implement Paywall and accept Bitcoin Lightning payments for restricted content.

## Description ##

The [Coinsnap](https://coinsnap.io/en/) Coinsnap Paywall protects your high-quality content and ensures that you are fairly remunerated for your work.

It allows you to build up a sustainable source of income and be less dependent on advertising revenue or sponsors. With your Coinsnap Paywall, you can target loyal users who are willing to pay, which leads to a high-quality community in the long term.

* Coinsnap Paywall Demo Site: https://btcpaywall.com/en/
* Blog Article: https://coinsnap.io/en/coinsnap-for-btcpaywall-payment-plugin/
* WordPress: https://wordpress.org/plugins/coinsnap-paywall/
* GitHub: https://github.com/Coinsnap/Coinsnap-Paywall

## Bitcoin and Lightning payments in Coinsnap Paywall ##

The Coinsnap Paywall allows you to accept Bitcoin for exclusive content and clearly differentiate your offer from the competition.

This is how you create added value – both for yourself and for the growing target group of Bitcoin customers!

With the Coinsnap Bitcoin Lightning payment processing plugin you can immediately accept Bitcoin Lightning payments on your site. You don’t need your own Lightning node or any other technical requirements if you'd like to provide payments via Coinsnap payment gateway.

Simply register on [Coinsnap](https://app.coinsnap.io/register), enter your own Lightning address and install the Coinsnap payment module in your Wordpress backend. Add your store ID and your API key which you’ll find in your Coinsnap account, and your customers can pay you with Bitcoin Lightning right away!

If you want to use another BTCPay server as Payment provider, you need to know your store ID, your API key and gateway URL as required parameters.


## Features ##

* **All you need is your email and a Lightning Wallet with a Lightning address. [Here you can find an overview of suitable Lightning Wallets](https://coinsnap.io/en/lightning-wallet-with-lightning-address/)**

* **Accept Bitcoin and Lightning payments** in your online store **without running your own technical infrastructure.** You do not need your own server, nor do you need to run your own Lightning Node. You also do not need a shop-system, for you can sell right out of your forms using the Coinsnap for Content Form 7-plugin.

* **Quick and easy registration at Coinsnap**: Just enter your email address and your Lightning address – and you are ready to integrate the payment module and start selling for Bitcoin Lightning. You will find the necessary IDs and Keys in your Coinsnap account, too.

* **100% protected privacy**:
    * We do not collect personal data.
    * For the registration you only need an e-mail address, which we will also use to inform you when you have received a payment.
    * No other personal information is required as long as you request a withdrawal to a Lightning address or Bitcoin address.

* **Only 1 % fees!**:
    * No basic fee, no transaction fee, only 1% on the invoice amount with referrer code.
    * Without referrer code the fee is 1.25%.
    * Get a referrer code from our [partners](https://coinsnap.io/en/partner/) and customers and save 0.25% fee.

* **No KYC needed**:
    * Direct, P2P payments (instantly to your Lightning wallet)
    * No intermediaries and paperwork
    * Transaction information is only shared between you and your customer

* **Sophisticated merchant’s admin dashboard in Coinsnap:**:
    * See all your transactions at a glance
    * Follow-up on individual payments
    * See issues with payments
    * Export reports

* **A Bitcoin payment via Lightning offers significant advantages**:
    * Lightning **payments are executed immediately.**
    * Lightning **payments are credited directly to the recipient.**
    * Lightning **payments are inexpensive.**
    * Lightning **payments are guaranteed.** No chargeback risk for the merchant.
    * Lightning **payments can be used worldwide.**
    * Lightning **payments are perfect for micropayments.**

* **Multilingual interface and support**: We speak your language


## Documentation: ##

* [Coinsnap API (1.0) documentation](https://docs.coinsnap.io/)
* [Frequently Asked Questions](https://coinsnap.io/en/faq/) 
* [Terms and Conditions](https://coinsnap.io/en/general-terms-and-conditions/)
* [Privacy Policy](https://coinsnap.io/en/privacy/)

## Installation ##

### 1. Install the Coinsnap Paywall ###

1.1 Install the Coinsnap Paywall plug-in from the WordPress directory

The Coinsnap Paywall can be searched in the WordPress plugin directory.

In your WordPress instance, go to the Plugins > Add New section.
In the search you enter Coinsnap and get as a result the Coinsnap Paywall plugin displayed.

![Installation of the Coinsnap Paywall plugin via Plugin search](https://resources.coinsnap.org/products/paywall/images/screenshot-1.png)


1.2. Install the Coinsnap Paywall plug-in from Github page

If you want to install the Coinsnap Paywall, you must first download it from the Coinsnap Github page here. Then look for the green button labeled “Code”.

![Installation of the Coinsnap Paywall plugin from Github page](https://resources.coinsnap.org/products/paywall/images/screenshot-2.jpg)

Install it via the “Upload Plugin” function:

Navigate to Plugins > Add New Plugin > Upload Plugin and select the zip-archive you’ve downloaded from Github.

![Installation via the “Upload Plugin” function](https://resources.coinsnap.org/products/paywall/images/screenshot-3.png)

When you click on it, the menu opens and Download ZIP appears.

1.3. Then click Install.

1.4. After successful installation, click Activate and then you can start setting up the plugin.


### 2. Connect payment gateway to Coinsnap Paywall ###

After you have installed and activated the Coinsnap Paywall, you must make the Coinsnap or BTCPay settings. You can find these in the sidebar on the left under “Coinsnap Paywall”.

2.1. Connect Coinsnap account with Coinsnap Paywall

Simply enter your Coinsnap Store ID and your API key there; you can find these in your Coinsnap account under “Settings”, “Coinsnap Store Settings”.

![Connect Coinsnap account with Coinsnap Paywall](https://resources.coinsnap.org/products/paywall/images/screenshot-4.png)

If you don’t have a Coinsnap account yet, you can do so via the link shown: Coinsnap Registration

2.2. Connect BTCPay account with Coinsnap Paywall 

Switch the select box "Payment Provider" to BTCPay and enter your BTCPay Store ID, API key and Server URL.

![Connect //0/0](https://resources.coinsnap.org/products/paywall/images/screenshot-5.png)

Please note that all your Coinsnap Paywall payment widgets will connect to the active payment provider: Coinsnap or BTCPay.

### 3. Create Coinsnap account ####

### 3.1. Create a Coinsnap Account ####

Now go to the Coinsnap website at: https://app.coinsnap.io/register and open an account by entering your email address and a password of your choice.

![Create a Coinsnap Account](https://resources.coinsnap.org/products/paywall/images/screenshot-8.png)

If you are using a Lightning Wallet with Lightning Login, then you can also open a Coinsnap account with it. 	

### 3.2. Confirm email address ####

You will receive an email to the given email address with a confirmation link, which you have to confirm. If you do not find the email, please check your spam folder.

![Confirm email address](https://resources.coinsnap.org/products/paywall/images/screenshot-9.png)

Then please log in to the Coinsnap backend with the appropriate credentials.

### 3.3. Set up website at Coinsnap ###

After you sign up, you will be asked to provide two pieces of information.

In the Website Name field, enter the name of your online store that you want customers to see when they check out.

In the Lightning Address field, enter the Lightning address to which the Bitcoin and Lightning transactions should be forwarded.

A Lightning address is similar to an e-mail address. Lightning payments are forwarded to this Lightning address and paid out. If you don’t have a Lightning address yet, set up a Lightning wallet that will provide you with a Lightning address.

![Set up website at Coinsnap](https://resources.coinsnap.org/products/paywall/images/screenshot-10.png)

For more information on Lightning addresses and the corresponding Lightning wallet providers, click here:
https://coinsnap.io/lightning-wallet-mit-lightning-adresse/

After saving settings you can use Store ID and Api Key on the step 2.


### 4. Configure Coinsnap Paywall ####

### 4.1. Create a paywall shortcode ###

Go to Coinsnap Paywall in the sideboard on the left in your WordPress and click on Paywall Shortcodes. Then click on “Add New Paywall Shortcode” at the top.

![Create a paywall shortcode](https://resources.coinsnap.org/products/paywall/images/screenshot-6.png)


### 4.2. Configure your paywall shortcode ####

In the window that now appears, make the following settings (see orange entries):

* First you assign a name so that you know later what the short code is intended for.
* Then you can enter a short description as background information for yourself or your editors.
* Then set the text of the payment button.
* Set your price!
* Select the currency in which the price is to be displayed
* Set the duration of the activation and
* Select the color scheme of the paywall.

![Configure your paywall shortcode](https://resources.coinsnap.org/products/paywall/images/screenshot-7.png)

Now you can copy the shortcode at the bottom and use it in your content.

### 5. Prepare restricted content ###

5.1. Create content

Now create content as usual in your WordPress, for example a text as in this example. As soon as you have finished the article, you must place the shortcode you have just produced at the point where you expect your reader to pay. You usually do this after the introductory paragraph.

**Tip:**
If you want to place a paywall before the download of a video, create a short description of the video content as an introduction and place an image of the start screen of the video next to it. This way, your users can see what to expect and why they want to pay for the video!

5.2. Save your post or page and find paywall widget by its URL.

### 6. Test payment ###

Go to the test payment page by copied URL. Click on payment button and go to the payment page. 

![Test payment](https://resources.coinsnap.org/products/paywall/images/screenshot-11.png)

This payment page shows your customer the amount payable in SATS. Click on “view Details” for further information. 

Then you see the QR code. Hold your wallet above it and the amount of SATS displayed above will be transferred from your wallet to the Coinsnap wallet as soon as you click the button “pay”.

![QR code](https://resources.coinsnap.org/products/paywall/images/screenshot-12.png)

