Example Campaign using Campaign Cart SDK
To view these pages, you'll need to run a local web server. Here are three simple options:
If you have Python 3 installed, simply run:
python3 serve.pyThis will automatically start a server on http://localhost:8000 and open the landing page in your browser.
Alternatively, you can use Python's built-in server (requires manually opening the browser):
python3 -m http.server 8000 --bind localhostIf you have Node.js installed, you can use the included serve script:
npm startThis will automatically start a server and open the landing page in your browser.
Or run directly:
npx http-server . -p 8000 -a localhost -o landing.htmlIf you're using VS Code, you can use the Live Server extension (requires installation if not already installed):
- Install the Live Server extension from the VS Code marketplace
- Right-click on
landing.htmlin the file explorer - Select "Open with Live Server"
The page will automatically open in your browser and reload when you make changes.
You can connect this example campaign to your campaign in the Campaigns App. Make sure to update the example API key with your campaign API key from the Campaigns App.
For more details, see the Campaigns App documentation.
You can use our test cards to create a card order