npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

peertube-plugin-ncd-sell-storage

v1.1.2

Published

NCD fork of the peertube-plugin-orion-sell-storage to sell storage to users using Stripe

Downloads

11

Readme

PeerTube plugin Sell Storage

Table of Contents

About

This plugin allow you to sell storage space to your users using Stripe subscription. Payments are automated with Stripe.

Getting Started

This is the NCD fork of the peertube-plugin-orion-sell-storage PeerTube plugin. This fork at inception allows you to add five packages rather than the original three. Everything else is pretty much left as-is, unless I decide to work on it more. Check Prerequisites to install this plugin

Prerequisites

  • Peertube >= v4.3.0

Installing

  • Go to your instance Admin
  • Navigate to the "Plugins" page
  • Search for "ncd-sell-storage"
  • Click Install near the plugin name

If installing locally

  • Clone Git repository
  • cd peertube-plugin-ncd-sell-storage
  • yarn
  • yarn build
  • Install via PeerTube CLI

Configuration

You need to configuration the plugin to work. Create an account on https://stripe.com to start.

In your Stripe dashboard, you can test in "Test mode", and go live by unchecking "Test mode" in the top right. To go in live mode, you need to fill form in Stripe side. We recommand you to test in Test mode the integration before go in live.

Note: If you perform a transaction in Test Mode, you'll need to manually clear the subscription status because the webhook will not send back the correct validation response, meaning the changes will take effect but nothing will be charged. Use a dedicated test account.

First, go to the Developer tab, and navigate to "API Keys". Grab your Secret API key, and insert it in your plugin settings. After that, always in the Developer tab, navigate to Webhook and create a webhook.

An example of webhook URL is available in your plugin settings. Its like https://your-instance.tld/plugins/ncd-sell-storage/1.1.2/router/webhook

Note: If you update the plugin, you'll have to update the webhook link in Stripe. Don't forget this!

Keep in mind, you need to update the webhook URL on stripe-side for each new plugin version, because the version is in the URL. Now, configure your Currency and Page description in the plugin settings.

Its time to add your Plans! In stripe, go to Product page, and add new product. Set a name, description and the price. After creation, go in this new Product and grab the "API ID" near the price field.

Now, you can continue configure your Plan (1, 2, 3, 4, 5) in the plugin settings. Repeat this process for each plans. Add new product, and grab the API ID corresponding to this price to insert it in your Product ID field, in the plugin settings.

Usage

  • Navigate to "My Account""
  • Navigate to the new navigation link "My Subscription"