Webflow
Add GoPayLocal PPP discounts to your Webflow site.
Add GoPayLocal to Webflow using the custom code embed feature.
Installation
Section titled “Installation”-
Get your API key from the GoPayLocal dashboard
-
Add the script to your site
Go to Project Settings > Custom Code in Webflow.
In the Footer Code section, paste:
<scriptsrc="https://api.gopaylocal.com/v1/banner/script.js?key=gpl_pk_live_abc123"async></script>Click Save Changes and publish your site.
-
Configure discounts in the GoPayLocal dashboard
Page-Specific Installation
Section titled “Page-Specific Installation”To add the banner only on specific pages (e.g., your pricing page):
- Open the page in Webflow Designer
- Add an Embed element at the bottom of the page
- Paste the script tag
- Publish
Data Attributes
Section titled “Data Attributes”Use Webflow’s custom attributes feature for localized pricing:
- Select a text element showing a price
- Go to Element Settings > Custom Attributes
- Add:
data-gopaylocal-price=99.99 - Add a script embed at the bottom of the page:
<script type="module"> import { GoPayLocal } from 'https://esm.sh/@gopaylocal/js'; const gpl = new GoPayLocal({ apiKey: 'gpl_pk_live_abc123' }); await gpl.init(); gpl.bindPriceElements();</script>