GoCardless Payer Themes API.
Custom branding (colours) applied to GoCardless-hosted payment pages
for a specific creditor. Combine with GoCardlessClient.Resources.Logos
to fully brand the hosted flow.
Example
{:ok, theme} = GoCardlessClient.Resources.PayerThemes.create(client, %{
button_background_colour: "#FF5A00",
content_box_border_colour: "#CCCCCC",
header_background_colour: "#002244",
header_text_colour: "#FFFFFF",
links: %{creditor: "CR123"}
})
Summary
Functions
Creates a payer theme associated with a creditor.
Functions
@spec create(GoCardlessClient.Client.t(), map(), keyword()) :: {:ok, map()} | {:error, GoCardlessClient.APIError.t() | GoCardlessClient.Error.t()}
Creates a payer theme associated with a creditor.
Params (all colours are hex strings e.g. "#FF5A00")
:button_background_colour— colour of action buttons:content_box_border_colour— border around content boxes:header_background_colour— page header background:header_text_colour— page header textlinks.creditor— Creditor ID (required)