Custom Styling for React Square Web Payment SDK

Adding custom css styling to the credit card input doesnt work, it seems the style prop is not recognised.

const cardClassSelectors = {
  input: {
    backgroundColor: '#2D2D2D',
    color: '#FFFFFF',
    fontFamily: 'helvetica neue, sans-serif',


How can I get this to work?

Hi @faith.adekogbe, welcome to the forums!

Styling for the Web Payments SDK is done via a style property in the CardOptions object. You can find a guide on how to handle styling on our docs site:
Customize the Card Entry Form