Payment Capture Page Styling

The Hosted Payment Capture Page now supports full styling customization—even though it's hosted by us. This allows you to tailor the look and feel of the page to match your brand or your merchants' preferences.

How It Works

  1. Preview and Configure
    Use our demo page to experiment with different styling configurations. This interactive tool lets you see how various settings affect the appearance of the Payment Capture Page.
  2. Generate Styling JSON
    Once you're satisfied with the design, export the configuration as a JSON payload.
  3. Submit to Styling API
    Send the JSON to our Styling API, replacing any placeholders with your desired values (e.g., brand colors, font choices).
  4. Receive Styling ID
    The API will return a Styling ID, which you can reuse across multiple merchants who require the same visual theme.
  5. Apply Styling to Payment Capture Page
    Include the Styling ID in the Payment Capture Page parameters to apply the custom styling.

Example Use Case

You can create both light and dark themes and dynamically switch between them based on your customer's system preferences. This ensures a seamless experience—no more blinding white popups in dark mode!

Customisable Styling Variables

The table below lists all the styling variables (cssVariables) you can configure via the Styling API:

VariableTypeExampleDescription
--fontFamilystringInterBase font family. Only fonts retrievable from [Google Fonts CSSgleapis.com/css2 are allowed.
--fontSizeBasestring (CSS size)16pxBase font size. Change this value to scale all text sizes.
--fontSizeHeading1--fontSizeHeading4string (CSS size)1.25remHeading sizes.
--spacingUnitstring (CSS size)0.25remBase spacing multiplier.
--borderRadiusstring (CSS size)0.5remCorner rounding.
--borderWidthstring (CSS size)1pxBorder thickness.
--borderColorstring (hex)#E0E6EBBorder color.
--colorPrimarystring (hex)#F97316Primary brand/accent color.
--colorTextTitle / --colorTextGeneral / --colorTextSubtlestring (hex)#111827Text color tiers.
--colorTextHeading1 / --colorTextHeading2string (hex)#111827Heading text colors.
--colorBackgroundPage / --colorBackgroundContainerPrimary / --colorBackgroundContainerSecondary / `--colorBackgroundContainerHoverstring (hex)#FFFFFFBackground layers

**Even you only need to customise a single variables, you will need to provide all the variables with their default value to the styling API.

Customisable CSS Class

If you are not satisfied with the variables above, you could customised the CSS based on the relevant cssClasses. Add this in when you are requesting for a styling ID. Note that we have block some CSS property, they will not take effect even if you pass them in. Due to security reasons, some CSS classes and functions are blocked. Kindly refer to blocked CSS classes and functions for the full list.

  1. Form Elements

    ClassDescriptionPseudo-classesPseudo-elementsStates
    .InputLabelInput field container:hover, :focus::placeholder, ::prefix--invalid ,--withPrefix
    .InputLabelInput field labels:hover, :focus--invalid
    .InputErrorError message styling:hover, :focus
    .SubmitButtonSubmit button:hover, :focus, :disabled
    .RadioButtonRadio button container:hover, :focus
    .RadioButtonInnerInner circle of radio button--selected, --disabled
    .CheckboxContainerCheckbox container:hover
    .CheckboxInputCheckbox input element:hover, :focus--checked, --disabled
    .CheckboxLabelCheckbox label:hover, :focus
  2. Accordion Components

    ClassDescriptionPseudo-classesPseudo-elementsStates
    .AccordionItemIndividual accodion item:hover, :focus
    .AccordionContentAccordion content area:hover, :focus
    .AccordionTriggerAccordion trigger button:hover, :focus
    .AccordionTriggerLabelAccordion trigger label
  3. Payment Method Accordion Components

    ClassDescriptionPseudo-classesPseudo-elementsStates
    .MethodAccordionItemPayment method accordion item:hover, :focus
    .MethodAccordionTriggerpayment method accordion trigger:hover, :focus
    .MethodAccordionTriggerLabelPayment method accordion trigger label
    .MethodAccordionTriggerDescriptionPayment method accordion description
    .MethodAccordionContentPayment method accordion content area:hover, :focus
    .InformationAccordionItemInformation accordion item:hover, :focus
    .InformationAccordionTriggerInformation accordion trigger:hover, :focus
    .InformationAccordionTriggerLabelInformation accordion trigger label
    .InformationAccordionContentInformation accordion content
  4. Information Accordion Components

    ClassDescriptionPseudo-classesPseudo-elementsStates
    .InformationAccordionItemInformation accordion item:hover, :focus
    .InformationAccordionTriggerInformation accordion trigger:hover, :focus
    .InformationAccordionTriggerLabelInformation accordion trigger label
    .InformationAccordionContentInformation accordion content
  5. Ezypay Contact Details Components

    ClassDescriptionPseudo-classesPseudo-elementsStates
    .EzypayDetailsLabelEzypay details label
    .EzypayDetailsContentEzypay details content
    .EzypayEmailEzypay email link:hover
  6. Terms & conditions Components

    ClassDescriptionPseudo-classesPseudo-elementsStates
    .TermsLabelTerms and conditions label
    .TermsLinkTerms and conditions link:hover
  7. Submit Results Components

    ClassDescriptionPseudo-classesPseudo-elementsStates
    .SubmitResultsIconIcon in submit results
    .SubmitResultsIconBackgroundBackground for submit results icon
    .SubmitResultsTitleTitle in submit results
    .SubmitResultsContentContent in submit results

Blocked CSS Classes and Functions

Blocked CSS Classes

background, background-image, border-image, border-image-source, list-style-image, mask, mask-image, mask-border, mask-border-source, content, clip-path, shape-outside, filter, -ms-filter, icon, @import, @font-face

Blocked CSS Functions

url(), expression(), image(), image-set(), cross-fade(), element(), attr()


Did this page help you?