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.

If you accept cookies, we’ll use them to improve and customize your experience and enable our partners to show you personalized PayPal ads when you visit other sites. Manage cookies and learn more