Make a Trigger.dev task payable with TDM
- Define a normal Trigger task
- Build a live fetch-hook client for TDM
- Wrap the task body with
makePayable(...) - Keep all pricing inputs explicit in the task payload
- durable background execution stays unchanged
- TDM only decides whether the premium action is authorized
- the payment-aware wrapper stays in TypeScript