Example implementation for Webflow developers
data-shabaas-checkout attribute
payment-methods for
dynamic payment method rendering
The following field IDs are recognized by the Shabaas checkout script. Each input field in your Webflow form must use these exact IDs for the integration to work properly. Fields marked as "(auto-filled)" are automatically populated by the script when checkout data is available.
id="name" // Customer full name (auto-filled) id="email" // Customer email address (auto-filled) id="phone_number" // Customer phone number (required) // Optional Fields id="company_name" // Company name (optional) id="business_abn" // Business ABN (auto-filled) id="ref_no" // Reference number (auto-filled) id="amount" // Payment amount in dollars (auto-filled) id="description" // Payment description (auto-filled)
payment-methods class) is
required for payment selection UI
Follow these step-by-step instructions to integrate Shabaas Checkout into your Webflow project.
Navigate to Project Settings → Custom Code → Footer Code and add the Shabaas checkout script.
<script src="https://cdn.shabaas.com/shabaas_checkout.js" data-business-uuid="YOUR_BUSINESS_UUID" data-show-alert="true" async ></script> // Script Attributes: // - data-business-uuid: Your unique business identifier (required) // - data-show-alert: Enable/disable alert notifications (optional, default: "true") // - async: Loads script asynchronously for better performance
In Webflow Designer, create a container div that will wrap your entire
checkout form. Add the data-shabaas-checkout attribute to
this container:
<div data-shabaas-checkout> <!-- Your form fields will go inside here --> <div class="form-wrapper"> <!-- Form inputs --> </div> </div> // How to add in Webflow: // 1. Select the container div in the Designer // 2. Go to Element Settings panel → Custom Attributes // 3. Add attribute: Name = "data-shabaas-checkout", Value = ""
For each form input field, you must assign the corresponding field ID. The script uses these IDs to identify and populate form fields.
name,
email, phone_number)
// Example: Setting ID for Name field <input type="text" id="name" placeholder="Enter your full name" /> // Example: Setting ID for Email field <input type="email" id="email" placeholder="Enter your email" />
Create a container div where payment methods (Bank Transfer,
ShabaasPay, Credit Cards) will be dynamically rendered. This container
must have the class payment-methods.
<div class="payment-methods"> <!-- Payment methods will be automatically inserted here by the script --> <!-- Options include: Bank Transfer, ShabaasPay, Credit/Debit Cards --> </div> // How to add in Webflow: // 1. Add a Div Block element // 2. Select the div and go to Element Settings → Classes // 3. Add class: "payment-methods" // 4. The script will populate this container with payment options
data-shabaas-checkout attribute
payment-methods