<div id="billflow-embed"></div>
window.billflowSettings = {
"billing_page_id": "B4bD7TzIKxnsZfcgJoFk",
handleResponse: async function(payload) {
let event = payload.event;
let response = payload.response;
//Redirect for free plan (update tiername check to yours)
if (event == "select_plan") {
let tierName = response.tier.tierName;
if (tierName == "Starter") {
window.location.href = "https://google.com"; //CHANGE ME
var s = document.createElement('script');
s.src = 'https://js.billflow.io/billflow-embed.js';
s.type = 'text/javascript';
var x = document.getElementsByTagName('script')[0];
x.parentNode.insertBefore(s, x);