Billing

Billing

Dodo Payments checkout, subscription sync, plan changes, and cancellation.

Dodo Payments flow

Billing is handled through Dodo Payments. In local development, Sonar is currently running against test mode.

  • The user chooses a plan on the subscription page.
  • Paid plans redirect the user to Dodo checkout.
  • After payment, Dodo redirects back to Sonar.
  • Sonar syncs the checkout and verifies subscription status before updating local plan access.
  • Starter has a three-day trial configured in Dodo.

Plan management

Upgrade and downgrade

Users should not be allowed to check out for the same plan they already have. Plan changes must verify that the provider-side subscription actually changed.

Cancel to Free

Paid users can cancel their subscription, which moves the account to the free plan and free-plan limits.

Webhook note

  • Local development does not have a public webhook endpoint.
  • Webhook integration should be added once the app has a public domain.
  • Until then, subscription verification relies on checkout sync and direct provider status checks.