to product id
This commit is contained in:
parent
00ff565a81
commit
30f9d9d754
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
<% } %>
|
||||
|
|
Loading…
Reference in New Issue