Optionalname?: PaymentSheet.CollectionModeOptionalphone?: PaymentSheet.CollectionModeHow to collect the phone field. Defaults to CollectionMode.automatic.
Optionalemail?: PaymentSheet.CollectionModeHow to collect the email field. Defaults to CollectionMode.automatic.
Optionaladdress?: PaymentSheet.AddressCollectionModeHow to collect the billing address. Defaults to CollectionMode.automatic.
OptionalattachDefaultsToPaymentMethod?: BooleanWhether the values included in Configuration.defaultBillingDetails should be attached to the payment method, this includes fields that aren't displayed in the form. If false (the default), those values will only be used to prefill the corresponding fields in the form.
How to collect the name field. Defaults to
CollectionMode.automatic.