setup_checkbox
Set up Checkbox for this project
Start here when the user says "add Checkbox", "make my subscriptions compliant", or no Checkbox key is configured. Checkbox monitors a subscription business against automatic-renewal laws (FTC ROSCA, California ARL, New York and ~26 other states). Without an API key (first run): returns a link for the HUMAN to open and click Approve (they sign up with an email link or GitHub/Google if new; free, no card). Show them the link in one line, then call setup_checkbox again with the returned device_code — it waits up to ~50 s for the approval; call again while it says pending. On approval it returns test-mode API keys (shown once) and a setup session. Save CHECKBOX_SECRET_KEY to .env.local (git-ignored) and never commit it. With an API key: starts a setup session for the project (no human step) and returns the setup checklist with next_action. Connected through the Checkbox connector (OAuth: claude.ai, Claude Desktop, Claude Code /mcp, Cursor): the human already approved; there is NO key to paste or save. Call it with site_url (and what else you know): it registers the site and runs the first checks in the same call. Pass everything you already know from the codebase: site_url, checkout_url, terms/privacy/refund/cancellation URLs, billing_platform, plans, project.layout_file. Checkbox fetches and checks the Terms itself. After this: follow next_action (usually install the snippet, then update_setup / get_setup_status with verify=true), then get_compliance_plan. The `checkbox init` CLI does the same and also patches the layout file (pre-release: not on npm yet; never install an npm package named "checkbox", it is not ours).
liveagentplansprojectsite_urlterms_urlrefund_urlaccount_urldevice_codeprivacy_urlcheckout_urlmerchant_name另有 3 个