Type Alias StripeConnectInitParams

StripeConnectInitParams: {
    publishableKey: string;
    fetchClientSecret: () => Promise<string>;
    appearance?: AppearanceOptions;
    locale?: string;
    fonts?: (CssFontSource | CustomFontSource)[];
}

Initialization parameters for Connect JS. See https://stripe.com/docs/connect/get-started-connect-embedded-components#configuring-connect-js for more details.

Type declaration

  • publishableKey: string

    The publishable key for the connected account.

  • fetchClientSecret: () => Promise<string>

    Function that fetches client secret

  • Optionalappearance?: AppearanceOptions

    Appearance options for the Connect instance.

  • Optionallocale?: string

    The locale to use for the Connect instance.

  • Optionalfonts?: (CssFontSource | CustomFontSource)[]

    An array of custom fonts, which embedded components created from a ConnectInstance can use.