Skip to main content
Connect Dodo Payments by pasting an API key. CrispStats imports your past payments and refunds, creates its own webhook when the key allows it, and records payments, subscription charges, refunds and lost disputes from then on. Put the visitor id in the payment’s metadata and each payment is tied to the visit that led to it.

What is recorded

Every payment is read back from Dodo Payments’ API with your key before it counts as verified revenue. Each carries the currency, the time and the customer’s email, hashed and masked before storage. Dodo payments are stored without a product name.

Connect Dodo Payments

1

Open the Dodo Payments panel

In CrispStats, open the site’s Settings, then Integrations. Select Connect a payment provider and choose Dodo Payments.
2

Create the API key

Under Dodo Payments API key, select Open API keys in Dodo Payments. Then:
  1. Open Developer, then API keys, and choose Create new key.
  2. Name it CrispStats. Set Payments, Refunds, Subscriptions and Products to Read.
  3. Set Webhooks to Write so sales show up the moment they happen.
  4. Copy the key and paste it here.
The link opens your Dodo Payments dashboard. Dodo does not publish a direct link to the API keys page, so follow the menu from there.
3

Paste the key and connect

Paste the key. CrispStats checks it with Dodo Payments at once. Select Connect Dodo Payments.With Webhooks: Write, CrispStats creates one webhook for this site, named CrispStats revenue attribution, and the row shows Connected to your business name, then Live. When Dodo does not return the name, it shows Connected. Live. Without it, the row says “Updates every 2 minutes. Add Write on Webhooks to the key to see sales the moment they happen.”
4

Pass the visitor id at checkout

A key made before Dodo added the dodo_live_ and dodo_test_ prefixes still connects: the server that accepts it tells test from live. Another provider’s key pasted here is refused with a message naming that provider.

What the key can do

Leave Customers and everything else at None. CrispStats never moves money.

How fresh the numbers are

With Webhooks: Write, Dodo Payments sends each payment within seconds, and CrispStats checks every 15 minutes as a safety net. Without it, CrispStats reads new payments and refunds every 2 minutes. Dodo Payments limits API calls per business across all its keys. CrispStats’ checks use a small part of that, and pause when Dodo asks them to slow down. Without the webhook, a lost dispute is found by a daily check of the last 48 hours, so it can take up to a day to appear.

Past payments

When you connect, CrispStats imports every succeeded payment and refund since your first. See revenue history.

Test mode

A key that starts with dodo_test_ connects to Dodo’s test environment. The panel says “This is a test key. Test payments show with a Test tag and never count as verified revenue.” and offers Connect in test mode or Use a live key.

Pass the visitor id at checkout

Add the id from crispstats.id() to the metadata of the payment, subscription or checkout session you create:
The payment’s metadata is merged over the customer’s metadata. A payment without a visitor id is still recorded and counted, without a visit.

Disconnect

Select Disconnect on the Dodo Payments row. CrispStats deletes its webhook in Dodo Payments and destroys the saved key and signing secret. Payments already recorded stay. If Dodo does not let CrispStats remove the webhook, the message asks you to delete the webhook named CrispStats revenue attribution in Dodo Payments, under Developer, then Webhooks.
Connections made earlier by pasting a webhook signing secret keep working. They cannot import history or verify payments: connect again with a key to add both.

Next steps

Pass the visitor id

When there is no id, and attributing across days.

Refunds and renewals

How payment kinds are recorded across providers.

Revenue history

What the import reads and how it avoids counting twice.
Last modified on November 24, 2026