From 4e7fe66883baded88e0cc5442fd82d3bfb4aac3b Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Mon, 13 Sep 2021 12:30:36 +0100 Subject: [PATCH] Server: Add link to Stripe subscription page to manage payment details --- packages/server/src/routes/index/stripe.ts | 10 +++++++++- packages/server/src/routes/index/users.ts | 3 ++- packages/server/src/views/index/help.md | 12 ++++++++---- packages/server/src/views/index/user.mustache | 3 +++ 4 files changed, 22 insertions(+), 6 deletions(-) diff --git a/packages/server/src/routes/index/stripe.ts b/packages/server/src/routes/index/stripe.ts index 9329a6383e..61f83636fd 100644 --- a/packages/server/src/routes/index/stripe.ts +++ b/packages/server/src/routes/index/stripe.ts @@ -137,6 +137,14 @@ export const postHandlers: PostHandlers = { // // - The public config is under packages/server/stripeConfig.json // - The private config is in the server .env file + // + // # Failed Stripe cli login + // + // If the tool show this error, with code "api_key_expired": + // + // > FATAL Error while authenticating with Stripe: Authorization failed + // + // Need to logout and login again to refresh the CLI token - `stripe logout && stripe login` webhook: async (stripe: Stripe, _path: SubPath, ctx: AppContext, event: Stripe.Event = null, logErrors: boolean = true) => { event = event ? event : await stripeEvent(stripe, ctx.req); @@ -426,7 +434,7 @@ const getHandlers: Record = {