National Reality TV Awards

Stripe Webhook Setup Guide

Follow these steps to ensure ticket purchases are automatically confirmed and emailed to buyers.

200
Total
178
Paid
22
Pending

Pending Bookings (may need manual fix)

NRTA-6745DE14Imranimranshafi844@googlemail.com
NRTA-6AE453AAGary TopleyGaryCP2023@proton.me
NRTA-2EE0BBDAjoshua whiteheadj.j.whitehead2001@gmail.com
NRTA-8DB217D9Carol St Johncarolstjohn@yahoo.com
NRTA-B9D6737FSASKIA CHANArajangillenquiries@hotmail.com
NRTA-9109E557Jack Valentejack.valente2009@virginmedia.com
NRTA-CB515798Jennifer Cruickshankjennifermcruickshank@gmail.com
NRTA-39A6588ETess O’Connortessoconnor2000@icloud.com
NRTA-21713584Owen Pussycockowenhancock12@gmail.com
NRTA-746B3452Test Usertest@test.com
NRTA-258B653FSimon Tomkinssimon.tomkins@itv.com
NRTA-E7178740Oliveroliver@platinum-live.co.uk
NRTA-3E702A52Jennifer Cruickshankjennifer.cruickshank@itv.com
NRTA-97902D31Mayes Bahranibahranimayes88@yahoo.com
NRTA-DF30CFAATest Usertest@example.com
NRTA-B50FDA5DTest Usertest@example.com
NRTA-63FF8776Attendeeno email
NRTA-28F05642Attendeeno email
NRTA-CC4F2945Attendeeno email
NRTA-5A158535Attendeeno email
NRTA-CE998674Attendeeno email
NRTA-1F3D32B5Attendeeno email
1

Get your webhook endpoint URL

In your Base44 dashboard: Code → Functions → stripeWebhook. Copy the endpoint URL at the top.

https://nationalrealitytvawards.co.uk/api/functions/stripeWebhook
2

Register the webhook in Stripe (if not already done)

Go to Stripe Dashboard → Webhooks

Click + Add endpoint, paste the URL above, then under "Events to send" search for and select checkout.session.completed. Click Add endpoint.

Already done — your webhook is active in Stripe
3

Copy the signing secret from Stripe

In Stripe, click your webhook endpoint → under Signing secret click the eye icon to reveal it (starts with whsec_...). Copy it.

4

Update the secret in Base44

In your Base44 dashboard: Settings → Environment Variables. Find STRIPE_WEBHOOK_SECRET, paste the new secret, and click Save.

If you rolled/regenerated the secret in Stripe, you MUST update it here or all webhook events will fail with "Invalid signature".
5

Test the webhook

In Stripe, click your webhook endpoint → Send test webhook (top right) → select checkout.session.completed → click Send test webhook.

If it returns 200 OK, everything is working. If it fails, check the response in Stripe's event log.

6

Fix existing pending bookings

If bookings are stuck in "pending" after payment, the webhook may have failed before the secret was updated. Use the Resend Email button above for each pending booking to manually trigger ticket delivery.

Note: This only sends the email. To mark a booking as paid, update it from the Admin Bookings page.