Free: Scan any product barcode for hidden toxins — instant safety score, no account needed →
Kind Earth

Admin · Stripe Setup

Webhook & Payment Setup

Complete these steps to activate membership upgrades and subscription renewals.

Live System Check

Running checks…

Step-by-Step: Register Webhook in Stripe

1

Open Stripe Webhooks

Go to your Stripe Dashboard → Developers → Webhooks.

Open Stripe Webhooks →
2

Add Endpoint

Click "Add endpoint" and paste this URL:

https://kinderth.com/api/webhooks/stripe
3

Select Events

Under "Select events to listen to", add these three:

checkout.session.completed
invoice.payment_succeeded
customer.subscription.deleted
4

Copy the Signing Secret

After saving, click the endpoint → reveal the "Signing secret" (starts with whsec_). Copy it.

5

Save as App Secret

In your Kind Earth builder, go to Settings → Secrets and update STRIPE_WEBHOOK_SECRET with the whsec_ value.

6

Verify

Click "Refresh" on the Live System Check above — all three checks should show ✅.

What Happens After a Payment

1
Member clicks UpgradeFrontend calls /api/checkout/membership → creates Stripe Checkout session
2
Stripe processes paymentMember completes checkout on Stripe's hosted page
3
Stripe fires webhookcheckout.session.completed → /api/webhooks/stripe → DB updated to pro/elite
4
Member redirected to /membership/successConfirm endpoint fires as fallback in case webhook is delayed
5
Monthly renewalinvoice.payment_succeeded → membership extended another 31 days automatically
6
Cancellationcustomer.subscription.deleted → tier reset to free