#dl-payment-element

1 messages · Page 1 of 1 (latest)

warped jetty
#

👋 Happy to help

odd urchin
#

Thanks! Sorry, my original question was actually about removing a placeholder for an input field in the Payment Element (e.g., 90210 for the zip code field).

#

I've seen the Appearance API, but it's not obvious to me how to change the color of placeholders.

#

re: disabling specific fields, which information is required for a successful payment? Do we need country and postal code, for example?

warped jetty
#

Ah sorry! I misunderstood your question

#

Checking how to customise the placeholder now

warped jetty
#

After checking, the placeholder text can't be changed, but you can customise the placeholder color (not specific to any fields) using colorTextPlaceholder. For example:

const options = {
  clientSecret,
  appearance: {
    theme: 'stripe',
    variables: {
      colorTextPlaceholder: '#df1b41',
    },
  },
};
warped jetty
odd urchin
#

That’s super helpful. Thanks!