Full flow: subscription payment (platform) → Stripe Connect → school visible to students. Swagger · Student payment test
Flow: pay subscription → connect Stripe → students can enroll & pay your connected account.
Env: FRONTEND_URL=https://YOUR-NGROK.ngrok-free.app/test
STRIPE_SUBSCRIPTION_SUCCESS_PATH=school/subscription/success.html
STRIPE_SUBSCRIPTION_CANCEL_PATH=school/subscription/cancel.html
STRIPE_CONNECT_RETURN_PATH=school/stripe-connect/return.html
Webhook: stripe listen --forward-to localhost:3000/api/v1/webhooks/stripe
(subscription + account.updated + enrollment events).
Simulates landing-page signup: register → pay subscription → login → connect Stripe.
Subscription payments go to the platform Stripe account (super admin).
Student course payments are charged on your connected account (direct to school admin).
When visible, students see your school in GET /school/list and can enroll.
Test student payments on
stripe-enrollment-test.html.