Integrate billing and payment processing directly into Convex applications with purpose-built functions for AI and SaaS monetization.
npm install @dodopayments/convexThis component is the official way to integrate the Dodo Payments in your Convex project.
Features:
Checkout Session: Integrate Dodo Payments Checkout with a couple of lines code.
Customer Portal: Allow customers to manage subscriptions and details
Webhooks: Handle webhooks efficiently. Just write your business logic and handle the events you want. Webhook verification is taken care by us
Detailed documentation can be found at [Dodo Payments Convex Component](https://docs.dodopayments.com/developer-resources/convex-component)
Dodo Payments provides Convex-native functions for creating and managing subscriptions. You can call subscription creation mutations directly from your Convex backend and handle billing events through dedicated webhook handlers.
The component includes mutations for recording usage events and calculating billing amounts based on consumption. It integrates with Convex's real-time database to track AI API calls, token usage, or other metered resources automatically.
Dodo Payments exposes payment processing through Convex actions that handle card charges, payment methods, and transaction status updates. All payment data syncs directly to your Convex database without external API calls from your frontend.
The package includes pre-built HTTP actions for processing payment webhooks like subscription renewals and failed charges. These actions automatically update your Convex database and trigger any necessary business logic through mutations.
Yes, Dodo Payments integrates fully with Convex's reactive queries and subscriptions. Payment status changes, subscription updates, and billing events automatically trigger real-time updates to your application UI through Convex's built-in reactivity.
Dodo Payments provides flexible usage tracking functions that you can customize for AI-specific billing patterns. You can track token consumption, API calls, model usage, or any custom metrics through configurable Convex mutations and automatic aggregation.
Dodo Payments handles PCI compliance by processing sensitive payment data on secure servers while exposing only safe operations through Convex actions. Your Convex database stores transaction metadata and billing information without touching raw payment card data.
The Dodo Payments Convex package supports credit cards, ACH transfers, and digital wallet payments. All payment method management happens through Convex actions that return payment status and customer information to your database.