v1.18.1 - Card checkout skips the cardholder name field when you already supply the buyer's name #
In @flopay/react and @flopay/vue, when you create the checkout session inside the component and pass a first or last name in `createSession.account`, the first session request now carries those names. Flopay can then show the hosted card form without its cardholder name field from the start, so buyers are not asked to type a name you already have. Without names, nothing changes.
24 Nov 2026
When you pass the buyer's name to a checkout that creates its own session, buyers no longer need to see a cardholder name field for a name you already gave Flopay. The first session request now carries the names, so the hosted card form can open without that field.
What changed
- Names on the first request. When
createSession.accounthas a non-blankfirstNameorlastName, the first session request carries the trimmed first and last name. A first name alone or a last name alone is sent on its own. - Cardholder name field hidden from the start. With a name on the session, Flopay issues the hosted card form without its cardholder name field, so the field is never rendered and the buyer types no name. No name input is reported in that case.
- Blank names are ignored. Empty, whitespace-only and missing names count as absent. The request and the card form stay exactly as before.
- Nothing else moves earlier. The buyer's email,
userId, address and cart still arrive with the later session update, as before. - Same session when a name changes. Names do not change which checkout session is reused, so editing a name does not start a new session or a new payment attempt.
- React and Vue.
@flopay/reactand@flopay/vuebehave the same. The change is in@flopay/js, which both use; there are no new props.
Integration notes
- No action is needed. If you already pass
firstNameorlastNameincreateSession.account, upgrade to get the shorter card form. - The cardholder name field is hidden only once the Flopay billing API keeps names sent on the first request. Until then it ignores them and the card form shows the field as before.
- The
@flopay/reactand@flopay/vueREADMEs describe the behaviour under "Supplied buyer names".