Skip to main content

Payment page branding

Configure the branding used by Hubpay-hosted checkout and payment links for your account.

Brand settings

  • Logo: the company mark shown in the payment experience
  • Primary colour: the colour of the primary call to action, such as the pay button
  • Accent colour: the colour of small marks such as chips and focus rings. Falls back to the primary colour when unset
  • Background colour: the colour of the surface the checkout sits on. The embedded checkout stays transparent when unset

Brand settings apply at account level to hosted payment experiences created after the change.

These are the same three roles as the embedded parameters below. Set them on the account and every payment page uses them; the parameters then override individual roles for a single embedded frame.

Send only the colours you are changing — a colour you omit is left as it is.

Removing a colour once set is not currently supported here. The request is multipart form data, where an omitted field and an explicitly empty one are indistinguishable, so there is no way to say "clear this role" as opposed to "leave it alone". Set it to the value you want instead.

Embedded checkout colours

When you embed the checkout in an iframe, three URL parameters colour that frame:

For iframe setup, browser events and the required origin parameter, see Embedded checkout.

ParameterWhat it colours
primaryPrimary actions, such as the pay button
accentSmall marks, such as the rate countdown ring
backgroundThe surface behind the checkout

Values are hexadecimal, with or without a leading #. A # has to be escaped as %23 in a URL, so the plain form is usually easier.

Append the parameters to the paymentUrl returned when you create the payment request, rather than building the URL from a host of your own:

https://pay.hubpay.ae/AH-VGTJ-24GX?embedded=true&primary=000000&accent=C39953&origin=https%3A%2F%2Fyour-domain.com

The embedded checkout is transparent by default, so the page behind it shows through. Set background only when you want the checkout to differ from the page it sits on.

Hubpay adjusts a supplied colour wherever it would not be legible. A pale primary colour is darkened until its label can be read, and an accent that does not separate from the background falls back to a dark ink. Contrast is never reduced below accessibility requirements in order to match a brand exactly.

Those adjustments are measured against the checkout's own surface. A transparent frame cannot see the page behind it, so on a dark page set background to match rather than relying on transparency — otherwise the accent is adjusted for a surface it is not really sitting on.

These parameters apply to the embedded checkout only. Payment pages opened by redirect or directly in a browser use the account-level brand settings above.

Open the branding API reference

A Hubpay payment page showing account branding