Documentation Index
Fetch the complete documentation index at: https://docs.dodopayments.com/llms.txt
Use this file to discover all available pages before exploring further.
Notion 权益功能会将您准备好的模板复制到付费客户的 Notion 工作区。客户通过 OAuth 授权,选择要复制模板的工作区,Dodo Payments 处理复制。
交付内容
- 提示客户通过 OAuth 连接他们的 Notion 工作区。
- 授权后,Dodo Payments 将已配置的模板复制到他们选择的工作区。
- 取消时,复制的模板仍会保留在客户的工作区(Notion 不支持远程删除)。授予标记为
revoked以供记录保存。
连接 Notion
Pick Notion
选择 Notion Template 作为集成。如果 Notion 尚未连接,会提示你 Connect Notion。
点击后将在新标签页中打开 Notion。登录拥有源模板的工作区,审核 Dodo Payments 请求的权限,然后选择可以读取和复制的页面(模板)。

当 Notion 重定向回来时,你会看到工作区已连接的确认信息。




客户流程
- 客户完成结账。
- Dodo Payments 创建一个状态为
pending的授予,带有一个让客户连接其工作区的 Notionoauth_url。 - 客户通过其邮件或客户门户中的链接授权,并选择要复制模板的工作区。
- Dodo Payments 复制模板。授予移动到
delivered。 - 撤销时,授予标记为
revoked;复制的副本保留在客户的工作区中。
Notion 有意将复制的页面视为收件人的内容。Dodo Payments 无法在撤销时删除副本。
必需的配置
| Field | Required | Description |
|---|---|---|
notion_template_id | Yes | The template ID. The dashboard picker fills this in. |
通过 API 创建
Webhooks
查看entitlement_grant.* webhook events:
entitlement_grant.created包含 Notionoauth_url。entitlement_grant.delivered当模板被复制时触发。entitlement_grant.revoked在取消时触发;客户的副本保持不变。
故障排除
Customer didn't get the template
Customer didn't get the template
授予保持
pending,直到客户完成 Notion OAuth。重新发送交付电子邮件;OAuth 链接在一周后过期,之后您可以撤销并重新创建授予。Template picker is empty
Template picker is empty
从 Entitlements → Integrations → Notion 重新连接 Notion 与拥有源模板的工作区。
Customer wants the template removed after refund
Customer wants the template removed after refund
Notion 不允许远程删除复制的页面。客户必须从他们自己的工作区删除副本。
