This chapter covers the core features and capabilities of Checkout Builder.
# Run the full demo (generates checkout_demo.html)
python src/checkout_builder.py --action demo
# Generate from a config file
python src/checkout_builder.py --action generate --input examples/checkout_config.json --output checkout.html
# Preview (generate and print HTML to stdout)
python src/checkout_builder.py --action preview --input examples/checkout_config.jsonFollow this guide to get Checkout Builder up and running in your environment.
| Flag | Description |
|---|---|
--action, -a | Action to perform (required) |
--input | JSON config file for checkout |
--output, -o | Output HTML file path (default: stdout) |
--verbose, -v | Enable debug logging |
The checkout is configured via a JSON file with these options:
| Key | Type | Default | Description |
|---|---|---|---|
store_name | string | "Acme Store" | Store name shown in header |
brand_color | string | "#6C63FF" | Primary brand color (hex) |
currency | string | "usd" | Currency code |
currency_symbol | string | "$" | Currency display symbol |
steps | array | ["cart","shipping","payment","review"] | Checkout steps |
collect_shipping | bool | true | Show shipping address form |
collect_billing | bool | true | Show billing address form |
require_phone | bool | false | Require phone number |
payment_methods | array | ["card","paypal"] | Available payment methods |
items | array | [] | Order line items |
coupons | array | [] | Available coupon codes |
tax_rate | float | 0.0 | Tax rate (0.08 = 8%) |
shipping_options | array | [] | Shipping methods and prices |
success_url | string | "/thank-you" | Redirect after success |
terms_url | string | "/terms" | Terms of service link |
privacy_url | string | "/privacy" | Privacy policy link |
Get the full Checkout Builder and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.