PaymentsPayment providers
DOKU
DOKU FlexiBill plans for STARTER membership.
DOKU FlexiBill subscription plans are available when features.paymentsProvider is PaymentProvider.Doku.
Webhook not hosted here
This marketing+docs host does not mount a DOKU webhook HTTP route.
Adapter code lives in packages/api/src/modules/billing/adapters/doku/.
Remount webhooks on a SaaS host in the full TurboJet monorepo.
Setup
- Create FlexiBill subscription plans in the DOKU dashboard.
- Paste plan IDs into
lookupKeys.doku.flexibillPlanIds(monthly/yearly) inpackages/payments/src/subscription-plans.ts. - Set env vars and
paymentsProvider: PaymentProvider.Doku.
Environment variables
DOKU_CLIENT_ID=""
DOKU_SECRET_KEY=""
DOKU_WEBHOOK_SECRET=""
DOKU_IS_PRODUCTION="false" # true in production