How It Works
- Create a stylesheet with your custom CSS rules.
- Give it a unique name that you will reference in your API requests.
- Reference the stylesheet name when generating a card entry or display form. PCI Booking renders the form with your styles applied.
IsDefault flag on Add/Update CSS, in which case that stylesheet is used automatically for any request that doesn’t explicitly specify a css parameter.
Want to customize or hide the “PCI Booking” branding shown in the form? This is possible through your custom stylesheet. The exact selector isn’t in the downloadable default CSS reference below at time of writing - contact support@pcibooking.net if you can’t locate it there and need it identified.
Default Stylesheet
The default CSS applied to the card capture form is available for download: default-capture-form.css. Use it as the baseline for your own stylesheet - start from the default, adjust the rules you want to change, and upload the result under your own resource name. The file also shows the element classes and IDs the forms use (e.g..card-container, .form-input), which you target when writing CSS from scratch - see the form structure reference below for the key selectors.
Field layout is fixed and cannot be reordered. Custom CSS controls appearance (colors, borders, spacing, hover states) of the existing field structure, not its layout or sequence. A small number of fields can be shown or hidden - e.g.
showOwnerId and showCVV on the Request Card Entry Form - but their position in the form is not configurable.Form Structure Reference
The key elements you can target with custom CSS, per hosted form: Card entry form (Request Card Entry Form):
CVV capture form (Request CVV Entry Form) uses the same structure with only the CVV field:
#frmCardPayment, .card-container, #cardCvv, #card-enter, and the loader elements.
Card display form (Request Card Display Form) renders read-only rows instead of inputs: .widjet-container (outer), .boxed (card panel), .row with .desc/.value pairs per field (card type, number, name, expiration), .row.footer, and .warning for virtual card notices.
Managing Stylesheets via the Portal
- Log into the PCI Booking portal.
- Navigate to GUI Settings > Stylesheet Settings.
- Click the plus icon to create a new stylesheet.
- Provide:
- Resource name - a unique name used to reference this stylesheet in API requests.
- Resource description - a free-text description for your reference.
- Resource Content LTR - CSS rules for left-to-right page layouts.
- Resource Content RTL - CSS rules for right-to-left page layouts (e.g. Arabic, Hebrew).
Managing Stylesheets via the API
You can also manage stylesheets programmatically:When updating a stylesheet via the API, the new content overwrites the existing content entirely.
Next Steps
Hosted Card Entry Form
Card capture form that uses stylesheets
Card Display
Card display form that uses stylesheets
Custom Translations
Customize form text and labels

