Skip to main content

Headless SDK

Build your own store with any framework (React, Vue, Svelte, plain HTML) or AI tools (Lovable, Claude, v0) and use TagadaPay as the headless backend for checkout, payments, pixel tracking, and CRM.
When to use this SDK:
  • You’re building a custom store on your own hosting (Vercel, Netlify, etc.)
  • You want full control over the UI while TagadaPay handles payments, PSP routing, pixel tracking, and subscriptions
  • An AI tool is generating your store code and needs a simple, self-documenting API
When NOT to use this SDK:
  • You want to deploy pages on TagadaPay — use the Plugin SDK instead
  • You only need a checkout link — use Web Integration
  • You need server-side automation — use the Node SDK
  • You’re building a payment platform that charges for many merchants (Suby-style PSPs, marketplaces) — use the Partners section instead. Partner S2S deliberately avoids checkout sessions, which this SDK is built around.
Not sure? Compare all five SDKs side-by-side on SDKs at a glance.

How It Works

The headless SDK talks to TagadaPay’s REST API from the browser. It’s a single import that gives you these modules:
Pixel tracking (Meta, TikTok, Snap, GTM, GA4) is configured in the TagadaPay dashboard and automatically injected into your checkout sessions. See the Pixels page for details.

Install


Quick Start


SDK Layers — Which Package Does What?

TagadaPay has three npm packages. Most developers only need the Headless SDK:
When do you need @tagadapay/core-js separately? Only if you’re building a low-level payment integration (mobile apps, embedded forms, MIT charges) without the Headless SDK’s session management. If you use @tagadapay/headless-sdk, just npm install @tagadapay/core-js as a peer dep — the Headless SDK calls it internally.

Design Principles

  1. Zero dependencies — core uses native fetch. No axios, no lodash.
  2. AI-first — single import, minimal config, self-contained methods. LLMs generate working code on the first try.
  3. Full payment coverage — same APMs, express checkout, 3DS, and PSP routing as the Plugin SDK.
  4. Automatic 3DSprocessPayment() handles redirects, iframe challenges, and polling out of the box.
  5. Tree-shakeable — unused modules are eliminated by bundlers.
  6. TypeScript-first — full type coverage, JSDoc on every method.

Next Steps

Build a Store with AI

Use Claude or Lovable to generate a storefront — TagadaPay handles the rest

Payment Setup

Discover APMs, express checkout, and payment flows

Checkout Flow

Sessions, cart, promo codes, and shipping

Funnel Navigation

Send shoppers into a TagadaPay funnel from your own cart

Emails

Transactional emails — order confirmations, subscription receipts, cart recovery

Pixels

Client-side pixel tracking for Meta, TikTok, GA4, GTM, and more

Upsells & Offers

Post-purchase offers and order bumps

Catalog

Browse products, variants, and prices

Customer

Profiles, order history, and subscriptions