Why Webhooks Are Critical

When a student enters their credit card during checkout, Stripe securely handles the payment. Stripe then sends a real-time HTTP POST event (a Webhook) to Convoia Academy to confirm the charge succeeded.

If the webhook endpoint is missing or configured with an invalid signing secret, the student's card will be charged, but their course access won't unlock automatically!

Webhook Setup Instructions

2
Click Add an endpoint.
3
Enter your Endpoint URL:

```

https://convoia.academy/api/stripe/webhook

```

4
Under Events to send, select the following events:

- checkout.session.completed

- invoice.paid

- invoice.payment_failed

- customer.subscription.deleted

5
Click Add endpoint.
6
Under Signing secret, click Reveal and copy the secret key (starts with whsec_...).
7
Contact Super Admin to save this secret key in your tenant billing configuration.