Hosted Fields Style Guide

DocsLegacyAdvancedLast updated: April 17th 2024, @ 4:51:01 pm


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.