Skip to main content
Mercur is configured through the standard Medusa config file. withMercur() wraps defineConfig() and wires the marketplace layer in. You pass it the same shape you would pass to Medusa, plus one Mercur-specific field.

withMercur()

medusa-config.ts
The option surface is Medusa’s InputConfigWithArrayModules extended with:

What withMercur applies

Everything else you pass is forwarded to defineConfig() unchanged, so any valid Medusa configuration stays valid here.

Environment variables

The starter (apps/api and projects created with create-mercur-app) reads:

Dashboard modules

The admin and vendor dashboards are served by two UI modules:

Stripe Connect payout provider

Register the Stripe connector plugin’s payout provider on the payout module. A marketplace has exactly one payout provider; with none registered, the module loads the built-in system provider:
The payout module itself accepts only onboarding options (returnUrl, refreshBaseUrl, prefill, defaultCountry). Scheduling options (capture, transfers, reversals, settlements, notifications, alerting, kycMonitor) belong to the Stripe connector plugin’s entry under plugins. See the Stripe Connect integration.

Next steps

Installation

Stripe Connect integration