1. Create your Gatlio account
Sign up at app.gatlio.io/signup. You’ll connect your Stripe account via OAuth during signup.2. Get your publishable key
From the Gatlio dashboard, copy your publishable key (pk_live_…). This key is safe to embed in client-side code.
3. Register your Stripe webhook
In your Stripe dashboard, create a webhook endpoint pointing to:invoice.payment_failedinvoice.paidsetup_intent.succeededaccount.updatedaccount.application.deauthorized
whsec_…) and paste it into the Gatlio dashboard under Settings → Stripe.
4. Add the enforcement snippet
Paste this into every authenticated page of your web app, replacing the placeholder values:Render this tag server-side.
data-customer-id is the signed-in subscriber’s Stripe customer ID. data-hmac is HMAC-SHA256(hmacSecret, stripe_customer_id) — compute it server-side using your HMAC secret from the Gatlio dashboard. Never expose the HMAC secret to the client.5. Verify it works
In your Gatlio dashboard, navigate to Subscribers and find your test subscriber. Use the Force status control to set them tolockout — reload the page in your app and confirm the gate overlay appears.