E-commerce integration

BlitzRocket + Stripe

Attribute every Stripe payment to the referrer who earned it

If you sell through Stripe Checkout — SaaS subscriptions, digital products, courses, or merch — BlitzRocket can credit each completed payment to the advocate who referred it. Connect with a signed webhook, let our script inject referral codes into checkout metadata automatically, and watch your referral program report actual revenue instead of vanity clicks.

Checkout webhook + tracking script
Setup time: ~10 minutes

Why connect Stripe?

💳

Checkout conversion tracking

BlitzRocket listens for completed Stripe Checkout sessions and matches each payment to the referral code that brought the buyer in.

🔌

Zero-code metadata injection

Our tracking script hooks into Stripe.js redirects and adds the visitor's referral code to checkout metadata automatically — no backend changes required.

📈

Revenue-true reporting

See referral performance in dollars, not clicks. Every campaign dashboard shows which referrers actually drive paying customers.

🔒

Signature-verified events

Each webhook delivery is verified against your Stripe signing secret before it's processed, so attribution data can't be spoofed.

How the Stripe integration works

Live in about 10 minutes — no engineering sprint required.

  1. 1

    Create a Stripe connection

    Add a Stripe connection in your contest's Tracking settings and BlitzRocket generates a dedicated webhook endpoint for the campaign.

  2. 2

    Register the webhook in Stripe

    Point a checkout.session.completed webhook at your BlitzRocket endpoint from the Stripe dashboard, using your signing secret.

  3. 3

    Add the tracking script

    Install blitzrocket.js on your site. It stores referral codes from campaign links and injects them into Stripe Checkout metadata at redirect time.

  4. 4

    Payments credit referrers automatically

    When a referred visitor pays, BlitzRocket awards points or entries to their referrer and logs the revenue against your campaign.

What's included

Payment trackingcheckout.session.completed events
Signature verificationStripe webhook signing secret validation
Referral attributionReferral code passed via checkout metadata
Entries for purchasesConfigurable points or entries per payment
Script auto-injectionHooks Stripe.js redirectToCheckout automatically
Manual tracking APIServer-side track-purchase endpoint for custom flows

Popular ways to use it

SaaS referral programs

Reward users when the friends they invite become paying subscribers — verified by the actual Stripe payment, not a form submission.

Digital product launches

Run a launch giveaway where buying your course or template earns bonus entries, tracked straight from Stripe Checkout.

Creator merch and offers

Sell through Stripe payment links or Checkout and still attribute every sale back to the superfan who shared your campaign.

Stripe integration FAQ

Which Stripe events does BlitzRocket track?

BlitzRocket processes checkout.session.completed events, which fire when a customer successfully completes a Stripe Checkout payment. That covers one-time purchases and initial subscription payments made through Checkout.

Do I need to modify my checkout code?

Usually not. If you use Stripe.js redirectToCheckout, our tracking script injects the referral code into the session metadata automatically. For fully custom server-side checkouts, you can pass the code yourself via metadata or use our track-purchase API.

How is the webhook secured?

You provide your Stripe webhook signing secret when connecting, and BlitzRocket verifies the signature of every delivery before processing it.

Can purchases earn giveaway entries?

Yes. Completed payments can award configurable points or entries in any active campaign, alongside social and referral actions.

Does this work alongside Shopify?

Yes. You can connect Stripe and Shopify stores to the same campaign — useful if you sell merch on Shopify and digital products through Stripe.

Connect Stripe in minutes

Launch a viral giveaway or referral program and plug it straight into your stack — Stripe plus 6+ more integrations included on every plan.