Stripe Integration
Prerequisites
Storing the click_id
click_id (function() {
const v = new URLSearchParams(window.location.search).get("click_id");
if (!v) return;
const d = new Date();
d.setTime(d.getTime() + (365 * 24 * 60 * 60 * 1000));
document.cookie = `tn_click_id=${encodeURIComponent(v)}; expires=${d.toUTCString()}; path=/; Secure; SameSite=Lax`;
localStorage.setItem('tn_click_id', v);
})();Adding the Stored click_id to the Payment Link
click_id to the Payment LinkSending Data from Stripe to Tracknow When a Purchase is Completed


Last updated