Compare commits
3 Commits
943c301d9a
...
18ead8b027
Author | SHA1 | Date | |
---|---|---|---|
18ead8b027 | |||
5822ced6af | |||
d8396abd36 |
@ -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>
|
||||
|
2
main.js
2
main.js
@ -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.
|
||||
// Typically this is stored alongside the authenticated user in your database. (psql) users -> userID ->
|
||||
const { session_id } = req.body;
|
||||
const checkoutSession = await stripe.checkout.sessions.retrieve(session_id);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user