Skip to main content

Webhooks

The backend currently exposes Stripe webhook receivers. It does not expose a generic webhook registration API.

Stripe endpoints

POST https://api.my-playrooms.de/api/StripeWebhook/Handle
POST https://api.my-playrooms.de/api/StripeWebhook/HandleConnected

Send the raw Stripe event body with its Stripe-Signature header. Use Stripe's official library to validate the signature before processing the event.

Events handled by the backend

EventDescription
invoice.paidPlatform account invoice paid
checkout.session.*Connected account checkout events

Verification

import stripe

event = stripe.Webhook.construct_event(
payload=raw_request_body,
sig_header=request.headers["Stripe-Signature"],
secret=webhook_secret,
)