diff --git a/account/src/lib/user-utils.ts b/account/src/lib/user-utils.ts index e7e5386..048671e 100644 --- a/account/src/lib/user-utils.ts +++ b/account/src/lib/user-utils.ts @@ -82,6 +82,7 @@ export async function upgradeUser(userId: T.UUID, subscription?: T.StripeSubscri export async function downgradeUser(userId: T.UUID, subscriptionId?: string): Promise { await deleteCouchDbAuthUser(userId); if (subscriptionId) { + console.log("deleting sub id", subscriptionId); stripe.subscriptions.del(subscriptionId); } const user = await updateLingdocsUser(userId, { diff --git a/account/src/routers/payment-router.ts b/account/src/routers/payment-router.ts index 36a090c..b32d411 100644 --- a/account/src/routers/payment-router.ts +++ b/account/src/routers/payment-router.ts @@ -14,7 +14,6 @@ paymentRouter.post( '/webhook', express.raw({ type: 'application/json' }), async (request, response) => { - console.log("in webhook"); let event = request.body; // Replace this endpoint secret with your endpoint's unique secret // If you are testing with the CLI, find the secret by running 'stripe listen' @@ -24,10 +23,8 @@ paymentRouter.post( // Otherwise use the basic event deserialized with JSON.parse const endpointSecret = env.stripeWebhookSecret; if (endpointSecret) { - console.log("endoint Secret", endpointSecret); // Get the signature sent by Stripe const signature = request.headers['stripe-signature'] || ""; - console.log("signature", signature); try { event = stripe.webhooks.constructEvent( request.body, diff --git a/website/src/screens/Account.tsx b/website/src/screens/Account.tsx index 5e3dd68..039fc7e 100644 --- a/website/src/screens/Account.tsx +++ b/website/src/screens/Account.tsx @@ -192,10 +192,9 @@ const Account = ({ user, loadUser }: { user: AT.LingdocsUser | undefined, loadUs
  • Review words with Anki-style spaced repetition
  • -

    Or enter upgrade password

    - +