Send professional transactional emails automatically when payment and subscription events occur. Deliver payment confirmations, subscription updates, and failure notifications through Keplars with no middleware server required. Dodo Payments calls the Keplars API directly using a JavaScript transformation handler.
This integration requires your Keplars API Key for authentication. Find it in the Keplars dashboard under Settings → API Keys, and verify a sender domain or address under Domains.
Each handler sets webhook.url to the Keplars high-priority send endpoint and rewrites webhook.payload into a Keplars request (the API key is sent automatically as a Bearer token). Replace payments@mail.yourdomain.com with your verified sender and your-keplars-*-template-id with your actual template IDs.
to must be an array, even for a single recipient. When using template_id, do not also send subject or body. The template supplies them.
Verify your API key is correct and active in Keplars under Settings → API Keys.
Verify your sender domain or address is verified.
Dodo Payments shows the raw Keplars error response in the webhook delivery log. Check it for details.
Template not found
The template_id in your handler must match an active template in your Keplars account. Verify the ID (and that it’s active) in the dashboard.
Wrong event triggered
Each handler checks webhook.eventType and returns early if it does not match. Make sure the correct events are subscribed on the Dodo Payments webhook endpoint.