Compare commits

..

No commits in common. "18ead8b027ad5917f0d5dd293b94ed03beee8594" and "943c301d9a0bea9602cd26f557d69e1f4cb7c15e" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ async function showPage({ rootEl, peertubeHelpers }) {
<h4><i>NCTV also offers cryptocurrency subscriptions for media storage. Contact Matty on <a href="https://nicecrew.digital/@matty" target="_blank">NCD</a>, <a href="https://matrix.to/#/@matty:chat.nicecrew.digital" target="_blank">Matrix</a>, or via <a href="mailto:matty@nicecrew.digital">email</a>.</i></h4>
</div>
${session_id ? `
<div class="mt-5">
<form method="POST" action="#" id="formManageSub">
<input type="hidden" id="session-id" name="session_id" value="${session_id}" />
@ -77,7 +77,7 @@ async function showPage({ rootEl, peertubeHelpers }) {
</form>
</div>
` : ""}
${sub_plan ? `
<p><i><b>${await translate("Your current plan")}</b>: ${sub_plan.name}, ${currency}${sub_plan.price} /${await peertubeHelpers.translate("month")}, ${sub_plan.storage} ${await peertubeHelpers.translate("GB Storage")}</i></p>

View File

@ -151,7 +151,7 @@ async function register({
const INSTANCE_URL = "https://" + req.get('host');
// For demonstration purposes, we're using the Checkout session to retrieve the customer ID.
// Typically this is stored alongside the authenticated user in your database. (psql) users -> userID ->
// Typically this is stored alongside the authenticated user in your database.
const { session_id } = req.body;
const checkoutSession = await stripe.checkout.sessions.retrieve(session_id);