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:
- Open Developer, then API keys, and choose Create new key.
- Name it CrispStats. Set Payments, Refunds, Subscriptions and Products to Read.
- Set Webhooks to Write so sales show up the moment they happen.
- Copy the key and paste it here.
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
See pass the visitor id at checkout below.
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 withdodo_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 fromcrispstats.id() to the metadata of the payment, subscription or checkout session you create:
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.