Setting up branding for each of your creditors is optional. If you do not add branding for a
creditor they will inherit any branding you have applied to your primary creditor.
If you are using the GoCardless Hosted Payment Pages or the Javascript Drop-in, you can customise the look and feel of your merchants' payment pages and notification emails by adding a logo or setting the colour theme.
All your merchants (represented as creditors in GoCardless) start off without any custom branding.
If you add branding to your primary creditor, the customisation settings will be inherited by all your creditors. This means if you want all your merchants to have the same branding, you only need to configure this once against your primary creditor.
If you add branding to a specific creditor, this will override the primary creditor settings for that creditor. This means if merchant X wants to have their own branding, you can apply it to their creditor and their logo and colour themes will appear to that merchant's customers only.
You can upload a logo to a creditor by performing a POST request to the /branding/logos endpoint. If a creditor already has a logo, this will update the existing logo linked to the creditor. The required parameters are:
Parameter
Description
image
Base64 encoded string of the image to be uploaded. Must be in the format "data:{image/type};base64,{base64 encoded string}". Max file size is 0.5MB.
links[creditor]
ID of the creditor the logo belongs to.
Examples of how to make this request using the GoCardless client libraries:
Logo logo = client.logos().createForCreditor().withImage("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAAA").withLinksCreditor("CR123").execute();
const logo = await client.logos.createForCreditor({image:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAAA",links: {creditor: "CR123",},});
var logoCreateForCreditorRequest = new GoCardless.Services.LogoCreateForCreditorRequest(){Image = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAAA",Links = new GoCardless.Services.LogoCreateForCreditorRequest.LogoLinks(){Creditor = "CR0123"}};var logoCreateForCreditorResponse = await gocardless.Logos.CreateForCreditorAsync(logoCreateForCreditorRequest);GoCardless.Resources.Logo creditorLogo = logoCreateForCreditorResponse.LogoResponse;
You can add payer colour themes to a creditor's branding by performing a POST request to the /branding/payer_themes endpoint. If a creditor already has payer themes, this will update the existing payer theme linked to the creditor. The required parameters are:
Parameters
Description
button_background_colour
The hexcode colour for button background
content_box_border_colour
The hexcode colour for for content box borders
header_background_colour
The hexcode colour for the header background
link_text_colour
The hexcode colour for text links
links[creditor]
ID of the creditor the payer theme belongs to.
Examples of how to make this request using the GoCardless client libraries: