dodo-payments
Installation
SKILL.md
Dodo Payments
Dodo Payments is a Merchant of Record: it is the legal seller, collects and remits sales tax, and handles chargebacks. Your code creates checkout sessions, verifies webhooks, and grants access.
When to use this skill and the standard path
Use it for any Dodo Payments integration or account task. Almost every integration follows the same three steps:
- Create a checkout session on the server with
client.checkoutSessions.create(...)and redirect the customer tocheckout_url. - Handle the webhook. Dodo POSTs a signed webhook to your endpoint. Verify it on the raw body with
client.webhooks.unwrap(...). - Grant access from the verified webhook:
payment.succeededfor one-time purchases,subscription.activefor subscriptions. Thereturn_urlredirect is a UI hint, never proof of payment.
import DodoPayments from 'dodopayments';
import express from 'express';