## Initialize the Embedded form SDK

`stripe.initCheckoutFormSdk(options?: object)`

> This feature is in private preview. See [Embedded form](https://docs.stripe.com/payments/checkout/how-checkout-works.md?payment-ui=checkout-form) for more information.

This method initializes Checkout for [embedded form](https://docs.stripe.com/elements/embeddable-payment-form.md) integrations, where a single form handles payment, address, and other elements.

- `options`
  Embedded form SDK initialization options.
    - `clientSecret`
      The Checkout Session [client secret](https://docs.stripe.com/api/checkout/sessions/object.md#checkout_session_object-client_secret) or a promise that resolves to the client secret.
    - `appearance`
      Match the design of your site with the [appearance option](https://docs.stripe.com/elements/appearance-api.md).
The layout stays consistent, but you can modify colors, fonts, borders, padding, and more.
Note: `rules` are not supported in the embedded form.
    - `loader`
      Display skeleton loader UI while waiting for the embedded form to fully load after it's mounted.
Default is `'auto'` (Stripe determines whether or not to show a loader UI).
    - `fonts`
      An array of custom fonts that the embedded form can use. You can specify fonts as [CssFontSource](#css_font_source_object) or [CustomFontSource](#custom_font_source_object) objects.
    - `savedPaymentMethod`
      Options to configure what the embedded form displays when used to [save payment details during payment](https://docs.stripe.com/payments/checkout/save-during-payment.md).
      - `enableRedisplay`
        Toggle if the embedded form redisplays Customer saved Payment Methods. Default is `'auto'`.
      - `enableSave`
        Toggle if the embedded form collects consent to save a customer's payment methods. Default is `'auto'`.
    - `defaultValues`
      If customer details are already known, you can pass this option to prefill the Checkout Session and the embedded form.
      - `billingAddress`
        The Customer's billing address.
        - `name`
          Full name.
        - `address`
          Address.
          - `country`
            Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
          - `line1`
            Address line 1 (e.g., street, PO Box, or company name).
          - `line2`
            Address line 2 (e.g., apartment, suite, unit, or building).
          - `city`
            City, district, suburb, town, or village.
          - `postal_code`
            ZIP or postal code.
          - `state`
            State, county, province, or region.
      - `shippingAddress`
        The Customer's shipping address.
        - `name`
          Full name.
        - `address`
          Address.
          - `country`
            Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
          - `line1`
            Address line 1 (e.g., street, PO Box, or company name).
          - `line2`
            Address line 2 (e.g., apartment, suite, unit, or building).
          - `city`
            City, district, suburb, town, or village.
          - `postal_code`
            ZIP or postal code.
          - `state`
            State, county, province, or region.
      - `email`
        The Customer's email address.
      - `phoneNumber`
        The Customer's phone number.

### Example

```title
Initialize the Embedded form SDK
```
