Hosted Fields Style Guide

Legacy

Last updated: Aug 15th, 7:57am

Important: This JavaScript SDK documentation uses the legacy HostedFields component. For the new integration that uses the CardFields component, see Card Fields Style Guide.

Change the layout, width, height, and outer styling of the card fields. Modify the elements you supply as containers with your current stylesheets. For example, #card-number { border: 1px solid #333; }.

Advanced credit and debit card payments elements require explicit height configuration. Style the height of your containers in your stylesheets. The text of the field components is configured with JavaScript.

We use cookies to improve your experience on our site. May we use marketing cookies to show you personalized ads? Manage all cookies