Tracking conversions with Stripe
Stripe is a built-in checkout in AtomicPlayer revenue tracking. The player adds a click key to Stripe buy links. Stripe sends the sale back to a webhook, and AtomicPlayer ties the approved sale to the video the viewer clicked. Revenue tracking is available on Standard and Scale.
Connect Stripe
- Open Integrations & APIs → Revenue.
- In Checkout, choose Stripe.
- Stripe has no Parameter choice. The player writes
client_reference_id. - Select Connect. A card for Stripe appears with its webhook URL.
- Copy the webhook URL. It contains a secret token. Treat it like a password.
![]()
Set up the webhook in Stripe
- In Stripe, add a webhook endpoint with the webhook URL.
- Send
checkout.session.completed. This is the event that carries the click key.
Also send charge.refunded, refund.created, and charge.dispute.created.
Stripe notes
Stripe Payment Links ignore src. The player writes client_reference_id instead, so Stripe has no Parameter choice. Stripe returns that value only on checkout.session.completed.
- A partial refund stays in revenue. A full refund or a dispute leaves it.
payment_intent.succeededrecords the amount but cannot tie the sale to a video.- On the current Stripe API,
invoice.paiddoes not include the PaymentIntent. A refund cannot find a sale saved only as an invoice. - A Checkout Session you create with the Stripe API must set
client_reference_iditself.
See Revenue attribution for the full Stripe event list.
Buy links the player tracks
The player recognizes links to buy.stripe.com and checkout.stripe.com, including their subdomains. When a viewer clicks one, the player writes a click key into client_reference_id and then opens the checkout. This works for buttons inside the player. With the JavaScript embed, it also works for buy links on the page around the player. A link that already carries a click key keeps it. A click key stays valid for 30 days.
Test and check the connection
Select Send test sale on the Stripe card. A test order of 97.00 in your reporting currency appears under Recent orders with a Test label. Select Remove test to delete it.
The card status starts as Waiting for first sale. It changes to Live when webhooks arrive. Needs attention means the last webhook failed, and the card shows Last webhook with the reason. An approved sale without a click key is listed but left out of revenue. Select Remove to disconnect Stripe.
CTA click webhooks
The conversion.fired event in Integrations & APIs → Webhooks is a different signal. It fires when a viewer clicks a player CTA and carries button metadata only, with no amount. Use revenue tracking for sales.
Related docs
Frequently asked questions
Does AtomicPlayer record Stripe sales as revenue?
Yes. Connect Stripe under Integrations & APIs → Revenue and add the webhook URL in Stripe. Approved sales are tied to the last video click and appear in Analytics → Revenue.
Which plan do I need?
Revenue tracking is available on Standard and Scale.
Why is a sale not tied to a video?
Stripe did not return client_reference_id. Use a Payment Link or a Checkout Session that sets it, and send checkout.session.completed.
How do I test the setup?
Select Send test sale on the card. Remove the test order afterwards with Remove test.