Prefilling billing data reduces friction in the checkout process by automatically populating form fields with customer information you already have.Documentation Index
Fetch the complete documentation index at: https://docs.fungies.io/llms.txt
Use this file to discover all available pages before exploring further.
Available Fields
| Field | SDK Property | HTML Attribute | Query Parameter |
|---|---|---|---|
billingData.email | data-fungies-billing-email | fngs-customer-email | |
| First Name | billingData.firstName | data-fungies-billing-first-name | fngs-customer-first-name |
| Last Name | billingData.lastName | data-fungies-billing-last-name | fngs-customer-last-name |
| Country | billingData.country | data-fungies-billing-country | fngs-customer-country |
| State | billingData.state | data-fungies-billing-state | fngs-customer-state |
| City | billingData.city | data-fungies-billing-city | fngs-customer-city |
| ZIP Code | billingData.zipCode | data-fungies-billing-zip-code | fngs-customer-zip-code |
The legacy
customerEmail property and data-fungies-customer-email attribute are still supported but deprecated. Use billingData.email instead.Usage Examples
JavaScript SDK
HTML Data Attributes
Query Parameters (Hosted Checkout)
Country Codes
Thecountry field accepts ISO 3166-1 alpha-2 country codes:
| Code | Country |
|---|---|
US | United States |
GB | United Kingdom |
CA | Canada |
AU | Australia |
DE | Germany |
FR | France |
PL | Poland |
JP | Japan |
| … | Full list |
State/Province Codes
For countries that require state/province selection (US, Canada, Australia, etc.), use the appropriate subdivision codes: United States:CA- CaliforniaNY- New YorkTX- Texas- etc.
ON- OntarioBC- British ColumbiaQC- Quebec- etc.
Field Visibility
Billing fields are only visible in checkout when:- Billing information is enabled in your checkout settings, or
- Your Stripe account is based in India (required by regulations)
Priority Order
When multiple sources provide billing data, this priority is used:- Query parameters / SDK billingData - Highest priority
- Persisted customer data - From previous sessions (local storage)
- IP-based detection - Automatic country detection
- Default values - Fallback (e.g., United States)
Additional Query Parameters
Beyond billing data, hosted checkout supports these query parameters:| Parameter | Description |
|---|---|
fngs-quantity | Product quantity |
fngs-discount-code | Discount code to apply |