Stripe integration
Section titled “Stripe integration”Partners subscribe via Stripe Checkout. The dashboard handles:
- Subscription creation and portal links
- Webhook processing at
src/pages/api/webhooks/stripe.ts - Invoice and payment state synced to Directus partner records
Webhooks
Section titled “Webhooks”Configure Stripe webhooks to point at your dashboard URL:
https://ie.soultales.app/api/webhooks/stripeRequired events depend on your Stripe products; see the webhook handler for the current list.
Secrets
Section titled “Secrets”Store STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET, and price IDs in Cloudflare Workers secrets: never in the repository.