From 63e22059cfc62b065f4367c4585da48937e1eabd Mon Sep 17 00:00:00 2001 From: matty Date: Tue, 2 Apr 2024 16:22:32 -0400 Subject: [PATCH] add payment gateway and fix crypto banner --- README.md | 2 +- client/pages/subscription.js | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e814bc3..af3fe39 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ This plugin allow you to sell storage space to your users using Stripe subscript Payments are automated with Stripe. ## Getting Started -This is the NCD fork of the [peertube-plugin-orion-sell-storage](https://git.ncd-serv.fr/ncd/Peertube-plugins/src/branch/master/peertube-plugin-ncd-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. +This is the NCD fork of the [peertube-plugin-orion-sell-storage](https://git.orion-serv.fr/ncd/Peertube-plugins/src/branch/master/peertube-plugin-ncd-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](#Prerequisites) to install this plugin ### Prerequisites diff --git a/client/pages/subscription.js b/client/pages/subscription.js index bf9894c..2fef5d3 100644 --- a/client/pages/subscription.js +++ b/client/pages/subscription.js @@ -45,9 +45,9 @@ async function showPage({ rootEl, peertubeHelpers }) { rootEl.innerHTML = `

${await peertubeHelpers.translate("Choose your Storage Plan")}

-

To subscribe to a storage plan with cryptocurrency (BTC, ETH, XMR) or cancel/update your subscription tier, contact us.

+
To subscribe to a storage plan with cryptocurrency (BTC, ETH, XMR), contact us.
-
+
${(await Promise.all(plans.map(async (plan) => `
@@ -81,6 +81,10 @@ async function showPage({ rootEl, peertubeHelpers }) { ${sub_plan ? `

${await translate("Your current plan")}: ${sub_plan.name}, ${currency}${sub_plan.price} /${await peertubeHelpers.translate("month")}, ${sub_plan.storage} ${await peertubeHelpers.translate("GB Storage")}

` : ""} + +