Golf Clothing Ecommerce Website
A high-performance, curated ecommerce ecosystem built with Next.js and Stripe Connect. This platform features a unique B2B2C architecture that allows authorized wholesalers and retailers to manage and sell from a centralized, high-quality product catalog.
Overview
A high-performance, curated ecommerce ecosystem built with Next.js and Stripe Connect. This platform features a unique B2B2C architecture that allows authorized wholesalers and retailers to manage and sell from a centralized, high-quality product catalog. With advanced inventory synchronization and a robust customer support system, it bridges the gap between bulk distribution and retail excellence.
The Problem
The primary challenge in building this high-performance e-commerce ecosystem was designing a B2B2C architecture that could seamlessly connect wholesalers (B2B) with retailers (B2C) on a single platform. This required solving complex problems around payment routing, inventory synchronization, and user onboarding. Specifically, the system needed to ensure that when a retailer sold a product, the funds were correctly collected from the end customer and then securely transferred to the authorized wholesaler, all while maintaining real-time, accurate inventory levels across the centralized catalog. Integrating Stripe Connect to manage these multi-party transactions and vendor accounts introduced significant technical complexity.
The Solution
The solution was implemented using Next.js for the frontend and Stripe Connect for the backend payment infrastructure. The platform leverages Stripe Connect's Express accounts to allow wholesalers to easily onboard by completing their verification directly on Stripe's secure portal, eliminating the need for the platform to handle sensitive financial data. Webhooks are used extensively to listen for critical events (e.g., account.updated, checkout.session.completed), enabling the system to automatically synchronize data. When a sale occurs, a webhook triggers an update to deduct inventory from the centralized catalog and initiates the payment flow, ensuring funds are routed from the end customer to the correct wholesaler. This architecture provides a secure, scalable, and automated B2B2C marketplace with real-time sync and robust financial operations.
Architecture
Next.js, TypeScript, Stripe, Auth.js
