## Create a Payment Element `checkout.createPaymentElement(options?: object)`

This method creates an instance of a Payment Element.

- `options` Payment Element initialization options.
- `fields` By default, the Payment Element will collect only the necessary billing details to complete a payment. If you intend to collect billing details fields outside of the Payment Element, you can disable Payment Element collection of certain fields with the `fields` option.
- `billingDetails` Specify `never` to avoid collecting all [billing details](https://docs.stripe.com/api/payment_methods/object.md#payment_method_object-billing_details) in the Payment Element. If you would like to disable only certain billing details, pass an object specifying which fields you would like to disable collection for. The default setting for each field or object is `auto`.
  - `name`
  - `email`
  - `phone`
  - `address` Specify `if_required` to only collect the minimum billing address fields required to complete the payment. You can omit and hide optional address fields in the card form, such as country and postal code. Unlike the `never` option, you don't need to include fields omitted in the Payment Element when confirming the payment. This can reduce the amount of information required to complete the form. Disabling address collection can negatively impact authorization rates and network fees for users on a network cost plus pricing plan.
  - `line1`
  - `line2`
  - `city` The name of a city, town, village, etc.
  - `state` The most coarse subdivision of a country. Depending on the country, this might correspond to a state, a province, an oblast, a prefecture, or something else along these lines.
  - `country` Two-letter country code, capitalized. Valid two-letter country codes are specified by ISO3166 alpha-2.
  - `postalCode`
- `layout` Specify the layout for the Payment Element. If you only pass a layout type (`'accordion'` or `‘tabs’`) without