Skip to main content

Trigger a Checkout from Your Website

Send customers from any website, landing page, or app to your TagadaPay-hosted checkout page. No server, no API key, no authentication.

How It Works (3 lines)

That’s it. The customer is redirected to TagadaPay, a checkout session is created with the product in the cart, and the customer lands on your checkout page.
Where do I find my storeId and variantId? Go to the CRM dashboard → your store settings for the store ID, and Products → select a variant for the variant ID.

Full Copy-Paste Example

Drop this into any HTML page and it works:
Replace store_abc123, variant_main_product, and the checkoutUrl with your real values.

Parameters

Required

Line Item Fields

Optional


More Examples

Bundle (Multiple Items)

Subscription

Dynamic Product (e.g., from a product page)


What Happens Behind the Scenes

  1. The customer clicks your button
  2. The browser navigates to https://app.tagadapay.com/api/public/v1/checkout/init?storeId=...&items=...&checkoutUrl=...
  3. TagadaPay creates a checkout session with the items in the cart
  4. TagadaPay redirects the customer to your checkoutUrl with a checkoutToken query parameter
  5. Your checkout page loads and the Plugin SDK picks up the token automatically
The entire flow is a single HTTP redirect — no AJAX, no CORS, no server-side code.
If you want to customize the helper or understand how it works, here’s the full annotated version:
This is a pure client-side function. It builds a URL string — no network requests, no dependencies. You can inline it, bundle it, or rewrite it in any language.

No-Code Alternative

You can also generate direct links from the CRM dashboard without writing any code. Go to Storefront → Direct Links, select your products, and copy the URL.

Next Steps

External Page Tracker

Add funnel analytics to your external pages

Funnel Orchestrator

Create multi-step checkout flows

Custom Domains

Set up a custom domain for your checkout

Plugin SDK

Build custom checkout experiences