From cbe2677a2af889a0869bf5f96ceb5d4b954eb957 Mon Sep 17 00:00:00 2001 From: Niloth P <20315308+Niloth-p@users.noreply.github.com> Date: Thu, 18 Jul 2024 06:55:18 +0530 Subject: [PATCH] integration-docs: Include suggestion for HTTPS hint in Stripe. With some wording tweaks by tabbott to make it more obviously only shown in certain environments. --- zerver/webhooks/stripe/doc.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/zerver/webhooks/stripe/doc.md b/zerver/webhooks/stripe/doc.md index c81555ad90..4430be56a8 100644 --- a/zerver/webhooks/stripe/doc.md +++ b/zerver/webhooks/stripe/doc.md @@ -2,6 +2,17 @@ Get Zulip notifications for Stripe events! +{% if 'http:' in external_url_scheme %} + +!!! tip "" + + Stripe will only send webhook payloads over HTTPS, but your Zulip + server is configured to only accept HTTP. To use the Stripe + webhook with this Zulip server, you will need to use a tunneling + service like ngrok or Ultrahook. + +{% endif %} + {start_tabs} 1. {!create-channel.md!} @@ -22,14 +33,6 @@ Get Zulip notifications for Stripe events! template to `https://dashboard.stripe.com/customers/{id}`. This step creates links to Stripe customers in Zulip messages and topics. -{% if 'http:' in external_url_scheme %} - -!!! tip "" - - Note that Stripe will only accept HTTPS webhooks! - -{% endif %} - {end_tabs} {!congrats.md!}