Controls how billing details are collected during checkout.

interface BillingDetailsCollectionConfiguration {
    name?: "automatic" | "always";
    phone?: "automatic" | "always";
    address?: "automatic" | "full";
    attachDefaultsToPaymentMethod?: boolean;
}

Properties

name?: "automatic" | "always"

How to collect the name field. Defaults to automatic.

phone?: "automatic" | "always"

How to collect the phone field. Defaults to automatic.

address?: "automatic" | "full"

How to collect the billing address. Defaults to automatic.

attachDefaultsToPaymentMethod?: boolean

Whether default billing details are attached to the payment method.