Upgrade to new Billing Pages
Upgrade steps to turn your current Billflow embeds to the new Billing Pages
Have you already integrated with Billflow using the embed snippet with config options? No worries, your current integration will work fine. The benefit that the new Billing Pages provides is that it hosts your configs so you never have to go into code to update them. Now, all updates are done straight from the Billflow dashboard. Follow the steps below to upgrade to the new Billing Pages.
On the dashboard you will now find 5 options for billing pages. Create a new billing page for your needs.
Go to your current embed snippet and turn on the options on the billing page to match what you have configured on your embed snippet. Options on the dashboard are worded naturally so it will be intuitive to pick the options you have configured from your snippet.
Save once you are done and you will have the option to embed.
You can still pass in configs to the new snippet just as before. So any dynamic data you will pass in the same way like the commonly used 'metadata' option. Same for handleResponse.
Copy your new embed snippet. It should look familiar, it has an addition of a billing_page_id. Necessary dynamic values will still be there like email and hash, but all other options can now be set on the dashboard. Paste your new snippet in.
Secure Setup remains the same
<div id="billflow-embed"></div>
<script>
window.billflowSettings = {
"billing_page_id": "7nTEgMCYPYSHvCOdwqyo",
"email": "// change this to your customer's email",
"hash": "// change this to your hash generated by your server using secured setup"
};
(function () { var s = document.createElement('script'); s.src = 'https://js.billflow.io/billflow-embed.js'; s.async = true; s.type = 'text/javascript'; var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); })();
</script>
Last modified 2yr ago