← All releases

The card form asks only for what you did not supply

The hosted card form hides the name field when the session carries a first or last name, and the SDK shows its own email box only when the session has no valid email.

Checkout APIDemo

The hosted card form now asks the buyer only for what your session does not already carry. Pass the buyer details you have, and the checkout asks for less.

What changed

What you need to do

Nothing is required. To hide the name field, pass the names when you create the session: accountData.firstName and accountData.lastName on a REST create, or account in the createSession payload on the React SDK. On the SDK default flow the names are attached at the claim, so the field is usually hidden but can stay shown for a buyer whose form appeared first. See What the card form asks for.