Stripe Connect Demo
A sample integration using the Stripe Connect V2 API with destination charges, Express dashboard, and thin webhook events.
1. Onboard Sellers
Create connected accounts using the V2 API and complete Stripe onboarding to enable them to receive payments.
2. Create Products
Add products at the platform level and link them to a connected account. Prices are set in cents.
3. Storefront
Browse all products and make purchases using Stripe hosted checkout with destination charges.
Webhook Setup
To receive account update events locally, run:
stripe listen \ --thin-events 'v2.core.account[requirements].updated,v2.core.account[.recipient].capability_status_updated' \ --forward-thin-to localhost:3000/api/connect-demo/webhook
Copy the webhook signing secret to STRIPE_CONNECT_WEBHOOK_SECRET in your .env.local.
