From b759d638e4ae36b17b8e1b90e3d3d998f0063d3e Mon Sep 17 00:00:00 2001 From: vincanger <70215737+vincanger@users.noreply.github.com> Date: Tue, 13 May 2025 17:04:50 +0200 Subject: [PATCH] Update deploying.mdx --- opensaas-sh/blog/src/content/docs/guides/deploying.mdx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/opensaas-sh/blog/src/content/docs/guides/deploying.mdx b/opensaas-sh/blog/src/content/docs/guides/deploying.mdx index 1edff06..1577358 100644 --- a/opensaas-sh/blog/src/content/docs/guides/deploying.mdx +++ b/opensaas-sh/blog/src/content/docs/guides/deploying.mdx @@ -175,13 +175,7 @@ export const stripe = new Stripe(process.env.STRIPE_KEY!, { 2. click on `+ add endpoint` 3. enter your endpoint url, which will be the url of your deployed server + `/payments-webhook`, e.g. `https://open-saas-wasp-sh-server.fly.dev/payments-webhook` listen events -4. select the events you want to listen to. These should be the same events you're consuming in your webhook. For example, if you haven't added any additional events to the webhook and are using the defaults that came with this template, then you'll need to add: -
- `account.updated` -
- `checkout.session.completed` -
- `customer.subscription.deleted` -
- `customer.subscription.updated` -
- `invoice.paid` -
- `payment_intent.succeeded` +4. select the events you want to listen to. These should be the same events you're consuming in your webhook which you can find listed in `src/payment/stripe/webhookPayload.ts`: signing secret 5. after that, go to the webhook you just created and `reveal` the new signing secret. 6. add this secret to your deployed server's `STRIPE_WEBHOOK_SECRET=` environment variable.
If you've deployed to Fly.io, you can do that easily with the following command: