Skip to content

Stripe Connect Overview

This project integrates Stripe Connect to collect payments on behalf of rental companies. Each company links its own Stripe account and charges customers through the platform.

According to Stripe Connect documentation, the typical flow for a Standard account is:

  1. Account creation – the merchant registers a Standard account and completes onboarding.
  2. Payment collection – the platform creates a Payment Intent or Payment Link on the connected account.
  3. Funds transfer – Stripe handles payout to the merchant, while application fees are transferred to the platform.
  4. Webhook handling – events from Stripe update the local system with the payment status.

The application follows this approach by storing the Stripe account ID per company and creating Payment Intents/Links through a helper PlatformStripe class. Webhooks are received via pages/api/stripe-connect/webhook/[location].js and dispatched to the handlers in lib/webhooks/stripe-connect.js.