Skip to main content
Pass constructor parameters to new Connect(options). The SDK requires key and onSuccess; other values configure callbacks or are forwarded to the hosted widget.

Constructor parameters

Account-linking configuration

Customer

Identify an existing Mono customer with its ID:
Or supply fields for a new customer:
Check official Mono documentation for current customer and identity requirements before production use.

Payment configuration

Current package examples pass payment configuration inside data.
Confirm current allowed types and required fields in Mono’s official payment documentation.

Setup configuration

Pass setup-only values to setup(config) rather than the constructor.

Secrets

The constructor accepts a public key. It does not require the Mono secret key.
Keep MONO_SECRET_KEY on your backend. Never pass it to new Connect(), expose it through a browser environment variable, or include it in frontend logs.