All guides

Set up Dodo Payments, step by step

Nine short steps from your first check to a live checkout. Do them in order and tick each one off. Your keys stay on your machine.

Step 1 of 9

We don't store your progress on our servers. It stays in this browser.

For Claude Code, Cursor, Windsurf or Codex. The text holds no keys. Your assistant runs the Merqli tools, and you type keys in your own terminal.

  1. Step 1 of 9 · about 3 min

    Check your fit and your site

    Start with Match & Ready. Answer a few questions, then paste your site address. Merqli checks your site against Dodo Payments's review before you apply. These are the checks Dodo Payments requires:

    Find my payment provider

    • Site is live and public
    • Price is visible
    • Terms of service page
    • Privacy policy page
    • Refund and cancellation policy
    • Way to contact you
    • Not hidden behind a login
    merqli check https://<your-site>

    What you'll see

    A list with one line per check. Ready lines are done. Every other line comes with the exact fix.
    Stuck?
    • The scan can't open your site. Take down a login wall or a bot challenge for a moment, then scan again.
    • Scan the public address, not localhost. The people who review your site see what everyone else sees.
  2. Step 2 of 9 · about 5 min

    Prepare your project offline

    You can do this before you have any account. merqli init adds a webhook route for your framework, an .env.example and a COMPLIANCE.md to your project. merqli simulate then sends signed fake events to that route and checks the answers.

    merqli init
    merqli simulate

    What you'll see

    Merqli lists the files it added. After `merqli simulate` you see one line per event, and whether your route answered correctly.
    Stuck?
    • merqli simulate needs your app running. Start it, then run the command again.
    • If Merqli picks the wrong framework, run merqli init --framework <name>: fastapi, flask, django or asgi.
  3. Step 3 of 9 · about 10 min

    Create your account

    Dodo Payments has no sign-up link we can verify. Open its docs and follow the sign-up steps there.

    What you'll see

    Nothing from Merqli yet. This step happens on the provider's site, and we don't show or imitate its screens.
    Stuck?
    • Can't find the dashboard? Open the docs link above and follow its sign-up steps.
    • Use your own legal name and details. The provider compares them with your bank account and ID later.
  4. Step 4 of 9 · about 3 min

    Create a safe test key

    In test mode, create a key with only the permissions below. A key that can do less does less harm if it leaks. Merqli asks for it later and keeps it on your machine.

    Give the key only these permissions:

    • products: write
    • webhooks: write

    Not confirmed by the provider's docs, so check them yourself: payments

    A test key starts with dodo_test_

    From the provider's docs (in English): Resource names from the dashboard key form; which resource covers checkout sessions is not documented, verify in the first live-sandbox run.

    What you'll see

    Nothing from Merqli yet. You paste the key into your own terminal in the next step, never into a web page or a chat.
    Stuck?
    • A live key in test mode, or the other way round, is the most common failure. Check the key's mode before you paste it.
    • Keep the key in your own .env, and out of git and chat.
    • If the provider refuses a call, it names the missing permission. Add it to the key and run the step again.
  5. Step 5 of 9 · about 11 min

    Connect Dodo Payments

    Run merqli connect dodo. Merqli prints the plan and where to click, and you do those steps in the dashboard. It checks the result when you are done. Your key and secret stay on your machine.

    Who does what when you connect
    Create a test keyYou do thisabout 3 min
    Create your product and priceYou do thisabout 2 min
    Register the webhookYou do thisabout 3 min
    Save the signing secretYou do thisabout 1 min
    Send a test eventYou do thisabout 1 min
    Receive and verify the test eventMerqli does thisabout 1 min

    From the provider's docs (in English): Dashboard: webhook > Testing > Send example. CLI: `dodo wh trigger` sends unsigned mock payloads; `dodo wh listen` forwards real test-mode events.

    merqli connect dodo

    What you'll see

    Plan for Dodo Payments (test)
      - Create a test key: You do this, about 3 min
      - Create your product and price: You do this, about 2 min
      - Register the webhook: You do this, about 3 min
      - Save the signing secret: You do this, about 1 min
      - Send a test event: You do this, about 1 min
      - Receive and verify the test event: Merqli does this, about 1 min
    Stuck?
    • The webhook address must be public https. localhost does not work. For a quick test, run a tunnel such as cloudflared.
    • A quick tunnel gets a new address every time it restarts. merqli doctor notices, and merqli connect --update-url fixes it.
  6. Step 6 of 9 · about 3 min

    Make a test purchase

    Run merqli test-purchase dodo. Dodo Payments's test cards are not in our data, so use the ones on its own test-card page.

    merqli test-purchase dodo

    What you'll see

    Sandbox checkout created
    Test event received and verified (order.paid)
    Stuck?
    • No event after two minutes? Check that the webhook is on in the dashboard and that its address is the current one.
    • A signature error usually means the signing secret is from the other mode, or from another webhook.
    • A quick tunnel gets a new address every time it restarts. merqli doctor notices, and merqli connect --update-url fixes it.
  7. Step 7 of 9 · the provider decides how long

    Get approved

    Dodo Payments reviews your business and your site before you can take live payments. The decision is theirs, not ours. Usually: 1-3 business days. Run merqli check on your live site first.

    • Site is live and public
    • Price is visible
    • Terms of service page
    • Privacy policy page
    • Refund and cancellation policy
    • Way to contact you
    • Not hidden behind a login

    Review time: 1-3 business days

    What you'll see

    Nothing from Merqli. You hear back from the provider by email or in its dashboard.
    Stuck?
    • If the provider says no, it tells you why. Fix that, check your site again with merqli check, and reapply.
    • Run merqli check on your live address right before you apply.
  8. Step 8 of 9 · about 5 min

    Go live

    Work through this checklist. merqli golive dodo shows it again and goes through it with you.

    1. Complete business verification (identity, bank account, product)
    2. Create live-mode API key and webhook (Merqli can do the webhook; keys are always created by you)

    These steps come straight from the provider's rules and are in English.

    Merqli cannot create live objects for this provider yet. Follow the checklist above, then run merqli doctor.

    merqli golive dodo

    What you'll see

    Before going live with Dodo Payments
      [ ] 1. Complete business verification (identity, bank account, product)
      [ ] 2. Create live-mode API key and webhook (Merqli can do the webhook; keys are always created by you)
    
    Still yours to do: bank account and payouts, domain or site approval, and the provider's own review.
    Stuck?
    • Live mode has its own key and its own webhook. Your test ones stay in test mode.
    • A quick tunnel gets a new address every time it restarts. merqli doctor notices, and merqli connect --update-url fixes it.
  9. Step 9 of 9 · about 1 min

    Keep it healthy

    Run merqli doctor dodo any time. It re-checks everything without changing anything, and exits with an error when something is red. Add --badge to write a small SVG you can show in your README.

    merqli doctor dodo
    merqli doctor dodo --badge billing-health.svg

    What you'll see

    Billing health for Dodo Payments (test)
      ✓ API key is set
      ✓ API key works
      ✓ Key matches the mode
      ✓ Product and price exist
      ✓ Webhook exists, is on, and listens to the events we need
      ✓ Webhook address is public https
      ✓ Webhook address answers, and refuses unsigned requests
    Stuck?
    • A quick tunnel gets a new address every time it restarts. merqli doctor notices, and merqli connect --update-url fixes it.
    • Each red line comes with a fix. Do the first one, then run merqli doctor again.