Skip to main content

Vanilla JavaScript / Standalone SDK

Use the TagadaPay SDK in any JavaScript project - no framework required!
Perfect for:
  • Pure HTML/CSS/JS sites
  • Server-rendered apps
  • Other frameworks (Svelte, Angular, Vue, etc.)
  • WordPress, Shopify, or any platform

Quick Start

Installation

Basic Usage

That’s it! No manual initialization, no complex state management. The SDK handles everything automatically.

How It Works

The SDK automatically:
  1. ✅ Creates an anonymous session
  2. ✅ Initializes the funnel (when enabled)
  3. ✅ Loads configuration and static resources
  4. ✅ Handles navigation and redirects
All you do is:
  1. Create the client
  2. Subscribe to get updates
  3. Use client.funnel.navigate() to move between steps

Complete Example

Here’s a full checkout page in vanilla JavaScript:

Available Methods

Client State

Funnel Methods


Funnel Action Types

All available action types for funnel.navigate():

Working with Static Resources

Static resources are configured by merchants in the CRM. Your code accesses them dynamically:

Local Testing

For local development, create config/resources.static.json:
The SDK automatically loads this in local dev!

Configuration


Error Handling


TypeScript Support

Full TypeScript support included:

Real-World Example: Checkout Page


Comparison: Before vs After

❌ Old Way (Too Complex)

✅ New Way (Simple!)


Next Steps

Build a Funnel

Follow the step-by-step tutorial

Funnel Resources

Learn about passing data between steps

API Reference

Explore all available methods

Examples

See complete examples