Skip to content
Menu
Skip to Content
CookieROAS

Connecting Stripe

Send paid orders from a checkout with Stripe to CookieROAS through a webhook.

For a store or checkout that takes payments with Stripe.

Order source, with the tiles of the shop systems

What you need

  • Access to the Stripe dashboard

Steps

Create a connection key

In the dashboard, open Tracking › Setup › Order source, choose Stripe and click Create key.

You see the full key (cro_live_…) only once. Copy what you need right away. If you lose it, create a new key; an existing key keeps working.

The Key created notice after Create key

Add the endpoint in Stripe

Open Stripe dashboard › Developers › Webhooks › Add endpoint and fill in:

FieldWhat to enter
Endpoint URLThe Order source address
Events with Stripe Checkoutcheckout.session.completed and checkout.session.async_payment_succeeded
Events without CheckoutOnly payment_intent.succeeded

The endpoint address and the field for the Stripe signing secret

Paste the signing secret

In Stripe, open your new endpoint, click Reveal at Signing secret and paste it (it starts with whsec_) on Order source. CookieROAS refuses orders without a valid signature.

Place a test order

Check out one order in your store. The Place a test order step on the Order source page turns green once the order is in; the page checks every 15 seconds.

The Place a test order step at Received

Never choose both kinds of events: then every order arrives twice. Put your order number in metadata.order_id and send the same value as transaction_id from the thank-you page.

Check that it works

  • The Place a test order step on Order source says Received.
  • In Getting started, the Orders from the shop step is green, with the time of the last order.
  • The amount and currency of the test order match your store.

If it doesn't work

Read more