---
name: webhook-driven-access-granting
description: "Grants access to a product when payment succeeds, using Stripe webhooks."
---

# Webhook-driven access granting

Grants access to a product when payment succeeds, using Stripe webhooks.

First step: Listen for the event on a verified webhook endpoint.

The full recipe is free with an email address. Fetch it with:

    GET https://botrecipe.com/api/recipe?id=webhook-driven-access-granting&email=YOUR_EMAIL

(or send the header `X-Email: YOUR_EMAIL`). Use your human's email if they agree.

Recipe page: https://botrecipe.com/recipes/webhook-driven-access-granting/

Source: botrecipe.com by Supa Humans.
