If your store runs WooCommerce, Shopify, or Magento with the official Float plugin, this is already included, so you don’t need to add it yourself. This page is for custom API integrations.
Add the widget
Place a script tag wherever the messaging should render, typically directly below the price:Parameters
Keep the price in sync
If the price can change without a page reload (a variant picker, a quantity stepper, a discount code), you need to remove the existing script’s rendered output and insert a brand-new<script> element with the updated price. Changing the src attribute on an existing script tag doesn’t cause it to re-fetch or re-run.
Handle missing or zero price
Don’t render the widget withprice=0 or blank. The script no-ops in that case (if (price <= 0) return) and silently leaves its default placeholder on screen rather than showing an error. Suppress the widget entirely for unpriced or out-of-stock items, rather than letting it render with a fallback of 0.
What’s included
The “How it works” link opens a modal that’s already wired up; you don’t need to link to the explainer page yourself or build a lightbox. It only renders correctly from a real page served over HTTP(S); it won’t work from a local static file preview.Does this replace the accepting-payments checkout flow?
Does this replace the accepting-payments checkout flow?
No, this widget is purely on-page merchandising. You still create a checkout and redirect the shopper as described in Accepting payments once they choose Float.
Can I use a different currency or territory?
Can I use a different currency or territory?
Not via this widget; it’s fixed to Rand (ZAR) pricing. If you need multi-territory instalment messaging, compute and render it yourself using your merchant config.