This commit is contained in:
parent
f681213114
commit
d77bc84d79
|
@ -81,7 +81,6 @@ paymentRouter.post("/create-checkout-session", async (req, res, next) => {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const prices = await stripe.prices.list({
|
const prices = await stripe.prices.list({
|
||||||
lookup_keys: [req.body.productId],
|
|
||||||
expand: ['data.product'],
|
expand: ['data.product'],
|
||||||
});
|
});
|
||||||
const session = await stripe.checkout.sessions.create({
|
const session = await stripe.checkout.sessions.create({
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
<% if (user.tester) { %>
|
<% if (user.tester) { %>
|
||||||
<p>Upgrade to Student account for Wordlist features</p>
|
<p>Upgrade to Student account for Wordlist features</p>
|
||||||
<form action="/payment/create-checkout-session" method="POST">
|
<form action="/payment/create-checkout-session" method="POST">
|
||||||
<input type="hidden" name="productId" value="prod_McF18BoMSgnLcQ" />
|
<!-- <input type="hidden" name="productId" value="prod_McF18BoMSgnLcQ" /> -->
|
||||||
<button class="btn btn-sm btn-secondary" type="submit">Upgrade Account</button>
|
<button class="btn btn-sm btn-secondary" type="submit">Upgrade Account</button>
|
||||||
</form>
|
</form>
|
||||||
<!-- <form action="/payment/create-checkout-session" method="POST">
|
<!-- <form action="/payment/create-checkout-session" method="POST">
|
||||||
|
|
Loading…
Reference in New Issue