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
- The name field is hidden when you pass a name. When the session carries a first or last name by the time the card form is shown, the form hides the name field. One part is enough: a first name alone or a last name alone hides it. The name is filled in for the buyer, and PCI Vault and the gateways receive it with the card.
- The email box works as before. The SDK shows its own email box only when the session has no valid email. A valid email on the session removes the email box.
- A form already on screen is not swapped. When names are attached after the form is already on screen, the name field stays shown and the buyer types the name.
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.