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:- ✅ Creates an anonymous session
- ✅ Initializes the funnel (when enabled)
- ✅ Loads configuration and static resources
- ✅ Handles navigation and redirects
- Create the client
- Subscribe to get updates
- 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 forfunnel.navigate():
Working with Static Resources
Static resources are configured by merchants in the CRM. Your code accesses them dynamically:Local Testing
For local development, createconfig/resources.static.json:
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
