to product id

This commit is contained in:
adueck 2022-10-15 09:11:00 +05:00
parent 00ff565a81
commit 30f9d9d754
2 changed files with 1 additions and 6 deletions

View File

@ -26,11 +26,6 @@
<body>
<div class="container">
<h1 class="my-4">LingDocs Auth Admin</h1>
<form action="/payment/create-checkout-session" method="POST">
<!-- Add a hidden field with the lookup_key of your Price -->
<input type="hidden" name="lookup_key" value="student-yearly" />
<button id="checkout-and-portal-button" type="submit">Checkout</button>
</form>
<p><%= users.length %> Users</p>
<table class="table">
<thead>

View File

@ -62,7 +62,7 @@
<% } %>
<% if (user.tester) { %>
<form action="/payment/create-checkout-session" method="POST">
<input type="hidden" name="lookup_key" value="student-yearly" />
<input type="hidden" name="product_id" value="prod_McF18BoMSgnLcQ" />
<button class="btn btn-sm btn-secondary" id="checkout-and-portal-button" type="submit">Upgrade Account</button>
</form>
<% } %>