Customize Elements

Billflow Configuration API for customizing Billflow UI elements

Custom elements are possible starting in Billflow v4 beta. This page describes what is available for customization and how it works with examples.

Customizable UI elements

If the out of the box UI elements or text does not fully fit what you need, we've got you covered. This is the list of customizable UIs within the Billflow embeds.

Embed Elements

Pricing Table

This customization will apply to the pricing page, plan picker and portal embed's change plan view.

Checkout

This customization will apply to the pricing page's checkout modal and the checkout page embed.

The API

Configuration Structure

This is how you would create the structure and pass it into the Billflow configuration in the embed code. For each customElement mentioned, refer to the Custom element API section.

Custom element API

The interface to this custom element api is the same for each element level as follows:

Examples

There are times when you want to customize the pricing information in the pricing table or even add extra elements to it. We will show you how to do it with the following examples.

Embed: Loader

Displaying the custom loader instead of our standard spinning circle

Pricing: Pricing Items

This section describes how you can customize the Pricing Items like the following example.

Customized Basic Tier (Left) Price Item Example

To customize a pricing item, you will first create a custom pricing item element like this.

The id specifies the Stripe price item to customize within the tier.

The element is the custom element you will create.

Element properties

type

Required

string

a valid html type

props

Optional

object

any valid props for the html element, such as class, id, etc.

render

Required

function

a render function that will return the custom content as a string, basic html tags are will work.

Stripe price object is passed to this function from Billflow, you can use the values to create the custom element.

Then you can pass the CustomBasicPrice to the config options.

Checkout the full example code here.

Pricing: Select Plan Button

This section describes how you can customize the Select Plan Button like the following example.

Customize the custom tier's Select Plan Button to open your Intercom chat

To customize a Select Plan Button, you will first create a custom element like this.

Then you can pass the CustomEnterpriseTier to the config options.

Checkout the full example code here.

Checkout: Price Item description

This section describes how you can customize the Price Description within the checkout view like the following example.

Customized checkout price description highlighted in red

To customize a price description, you will first create a custom element like this.

Then you can pass the CustomPriceDescription to the config options.

Checkout the full example code here.

Checkout: Price Item Price

This section describes how you can customize the Price within the checkout view like the following example.

Customized checkout price highlighted in red

To customize a checkout price, you will first create a custom element like this.

Then you can pass the CustomCheckoutPrice to the config options.

Checkout the full example code here.

Last updated

Was this helpful?