peertube-plugin-sell-storage 1.1.6 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,19 +7,19 @@
|
|
|
7
7
|
- [Installation](#installation)
|
|
8
8
|
- [Configuration](#configuration)
|
|
9
9
|
- [Usage](#usage)
|
|
10
|
+
- [Acknowledgements](#acknowledgements)
|
|
10
11
|
|
|
11
12
|
## About <a name = "about"></a>
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
This plugin allows you to sell storage space to your users using Stripe subscription. Payments are automated with Stripe.
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
17
|
+
The most notable features are:
|
|
18
|
+
- Automatic video quota increases and decreases without human intervention.
|
|
19
|
+
- Dedicated page in the menu which promotes upgrading users' storage and makes it easy to see subscription information.
|
|
20
|
+
- Up to five different packages/subscriptions.
|
|
21
|
+
- The interface is unbranded, which makes this plugin accessible by every instance.
|
|
19
22
|
- Custom billing portal for customers to manage their subscriptions.
|
|
20
|
-
- Imrpoved documentation. For example, the necessary API events for the Stripe webhook are documented.
|
|
21
|
-
|
|
22
|
-
As with [peertube-plugin-ncd-sell-storage](https://gitea.nicecrew.digital/matty/peertube-plugin-ncd-sell-storage), this fork allows you to add five different packages/subscriptions.
|
|
23
23
|
|
|
24
24
|
## Prerequisites <a name="prerequisites"></a>
|
|
25
25
|
|
|
@@ -30,17 +30,20 @@ As with [peertube-plugin-ncd-sell-storage](https://gitea.nicecrew.digital/matty/
|
|
|
30
30
|
|
|
31
31
|
## Installation <a name="installation"></a>
|
|
32
32
|
|
|
33
|
-
-
|
|
34
|
-
-
|
|
33
|
+
- Navigate to the "Settings" page on the PeerTube menu when logged in as an admin.
|
|
34
|
+
- Click on the "Plugins/Themes" section.
|
|
35
35
|
- Search for "sell-storage"
|
|
36
|
-
- Click Install near the plugin name
|
|
36
|
+
- Click "Install" near the plugin name
|
|
37
37
|
|
|
38
38
|
### If you're installing locally
|
|
39
|
-
- Clone Git repository
|
|
40
|
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
|
|
39
|
+
- Clone the Git repository, change directories, and build the plugin
|
|
40
|
+
```bash
|
|
41
|
+
git clone https://github.com/ayaadev/peertube-plugin-sell-storage.git
|
|
42
|
+
cd peertube-plugin-sell-storage
|
|
43
|
+
yarn
|
|
44
|
+
yarn build
|
|
45
|
+
```
|
|
46
|
+
- Install via the [PeerTube CLI](https://docs.joinpeertube.org/contribute/plugins#test-your-plugin-theme).
|
|
44
47
|
|
|
45
48
|
## Configuration <a name="configuration"></a>
|
|
46
49
|
You need a Stripe account as stated in the [Prerequisites](#prerequisites) section.
|
|
@@ -73,12 +76,12 @@ Go to https://dashboard.stripe.com/webhooks and create a webhook with the follow
|
|
|
73
76
|
- `invoice.payment_failed`
|
|
74
77
|
- `payment_intent.succeeded`
|
|
75
78
|
|
|
76
|
-
For the webhook URL, make sure the version in the URL matches the version of the plugin. For example, if your plugin is on version `1.1.
|
|
77
|
-
`https://your-instance.tld/plugins/sell-storage/1.1.
|
|
79
|
+
For the webhook URL, make sure the version in the URL matches the version of the plugin. For example, if your plugin is on version `1.1.7` use the URL:
|
|
80
|
+
`https://your-instance.tld/plugins/sell-storage/1.1.7/router/webhook`
|
|
78
81
|
|
|
79
82
|
An example of this with the correct version in the webhook URL is available in the plugin settings.
|
|
80
83
|
|
|
81
|
-
**Note: If you update the plugin, you'll have to update the webhook link in Stripe with the new version. For example, if you update from 1.1.3 to 1.1.
|
|
84
|
+
**Note: If you update the plugin, you'll have to update the webhook link in Stripe with the new version. For example, if you update from 1.1.3 to 1.1.7 change the webhook URL to `https://your-instance.tld/plugins/sell-storage/1.1.7/router/webhook`. Don't forget this!**
|
|
82
85
|
|
|
83
86
|
### PeerTube Plugin
|
|
84
87
|
|
|
@@ -114,3 +117,10 @@ Navigate to "Storage Plan" underneath "My video space" in the PeerTube menu
|
|
|
114
117
|
|
|
115
118
|
<img width="212" height="258" alt="image" src="https://github.com/user-attachments/assets/05d4b7a2-0964-4bf2-9981-251f32b162b3" />
|
|
116
119
|
|
|
120
|
+
## Acknowledgements <a name = "acknowledgements"></a>
|
|
121
|
+
|
|
122
|
+
This was inspired by and modified from [peertube-plugin-ncd-sell-storage](https://gitea.nicecrew.digital/matty/peertube-plugin-ncd-sell-storage). Modifications include:
|
|
123
|
+
- Error free! **At the time of writing this**, the published version of ncd-sell-storage is outdated and therefore does not work despite the fix being available on their Git repository.
|
|
124
|
+
- Branding removed. ncd-sell-storage had hardcoded branding which was removed so this plugin is accessible by everyone.
|
|
125
|
+
- Custom billing portal for customers to manage their subscriptions.
|
|
126
|
+
- Imrpoved documentation. For example, the necessary API events for the Stripe webhook are documented and screenshots have been included.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "peertube-plugin-sell-storage",
|
|
3
3
|
"description": "Updated and republished version of peertube-plugin-ncd-sell-storage to sell storage to users using Stripe",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.7",
|
|
5
5
|
"author": "AyaaDev",
|
|
6
6
|
"bugs": "https://github.com/ayaadev/peertube-plugin-sell-storage",
|
|
7
7
|
"clientScripts": [
|