zulip/zerver/webhooks/stripe/doc.md

1.2 KiB

Zulip Stripe integration

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-an-incoming-webhook.md!}

  2. {!generate-webhook-url-basic.md!}

  3. On your Stripe Dashboard, select Developers on the left sidebar. Select Webhooks, and click on + Add endpoint.

  4. Set the URL to be called to the URL generated above. Select the event types you would like to be notified about, and click Add endpoint.

  5. Add a new linkifier in your Zulip organization. Set the pattern to (?P<id>cus_[0-9a-zA-Z]+) and the URL template to https://dashboard.stripe.com/customers/{id}. This step creates links to Stripe customers in Zulip messages and topics.

{end_tabs}

{!congrats.md!}

{!event-filtering-additional-feature.md!}

{!webhooks-url-specification.md!}