← All releases

Set your own placeholder text in the card form

The new cardFieldPlaceholders prop and setCardFieldPlaceholders method change the placeholder text of the hosted card number, expiry, security code and name fields. Merchants who do not set them see no change.

Checkout APISDK

You can now change the placeholder text inside the hosted card fields with the cardFieldPlaceholders prop, or with setCardFieldPlaceholders if you mount the card form yourself with @flopay/js.

What changed

What you need to do

Nothing, unless you want your own wording. Merchants who do not set the prop see no change.

The prop needs @flopay/react or @flopay/vue 1.18.0 or newer, and the method needs @flopay/js 1.18.0 or newer. See Change the card field placeholders for an example and the default wording of each field.