Skip to main content

Vanilla JavaScript / Standalone SDK

Use the TagadaPay SDK in any JavaScript project - no framework required!
Perfect for Tagada-hosted plugins:
  • Pure HTML/CSS/JS pages deployed on TagadaPay
  • Server-rendered plugin templates
  • Other frameworks (Svelte, Angular, Vue) running inside the plugin runtime
Not for WordPress, Shopify, or your own domain. Those are Headless SDK (TagadaPay manages the cart) or core-js + payments.process (you already have the order). See Choose how you accept payments.

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