This commit is contained in:
parent
f681213114
commit
d77bc84d79
|
@ -81,8 +81,7 @@ paymentRouter.post("/create-checkout-session", async (req, res, next) => {
|
|||
}
|
||||
try {
|
||||
const prices = await stripe.prices.list({
|
||||
lookup_keys: [req.body.productId],
|
||||
expand: ['data.product'],
|
||||
expand: ['data.product'],
|
||||
});
|
||||
const session = await stripe.checkout.sessions.create({
|
||||
billing_address_collection: 'auto',
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
<% if (user.tester) { %>
|
||||
<p>Upgrade to Student account for Wordlist features</p>
|
||||
<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>
|
||||
</form>
|
||||
<!-- <form action="/payment/create-checkout-session" method="POST">
|
||||
|
|
Loading…
Reference in New Issue