Skip to main content
Notion 权益功能会将您准备好的模板复制到付费客户的 Notion 工作区。客户通过 OAuth 授权,选择要复制模板的工作区,Dodo Payments 处理复制。

交付内容

  • 客户通过 OAuth 连接其 Notion 工作区。
  • 授权后,Dodo Payments 会将配置的模板复制到客户选择的工作区中。
  • 取消时,复制的模板仍会保留在客户的工作区中(Notion 不支持远程删除)。该授权会被标记为 Revoked 以留存记录。
常见用途包括付费 Notion 模板、生产力系统和操作系统/CRM 模板。

连接 Notion

1

Open Entitlements

在你的 Dodo Payments 仪表板中,进入 Entitlements 并点击 +
2

Pick Notion

选择 Notion Template 作为集成。如果 Notion 尚未连接,会提示你 Connect Notion
New entitlement panel prompting the merchant to connect Notion

Connect Notion prompt before the OAuth handoff.

点击后将在新标签页中打开 Notion。登录拥有源模板的工作区,审核 Dodo Payments 请求的权限,然后选择可以读取和复制的页面(模板)。
Notion OAuth permissions screen for Dodo PaymentsNotion page picker selecting which templates Dodo Payments can access

Notion OAuth: review permissions, then pick the template pages to share.

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

Workspace connected — return to the Dodo Payments dashboard to continue.

3

Pick a template

返回仪表板,从模板选择器中选择要复制的 template。只有在上一步中授权的页面会显示在这里。为权限赋予 name 并点击 Create Entitlement
Notion entitlement form with connected workspace, template picker, and name field
4

Save the entitlement

保存并附加到任何产品。

客户流程

  1. 客户完成结账。
  2. Dodo Payments 创建一条状态为 Pending 的授权记录。其 oauth_urlnull,直到客户开始接受流程;此时该字段会填充 Notion 授权 URL。
  3. 客户通过电子邮件或 Customer Portal 中的链接进行授权,并选择要将模板复制到的工作区。
  4. Dodo Payments 复制模板。授权记录变为 Delivered
  5. 撤销授权后,授权记录会标记为 Revoked;复制的副本仍保留在客户的工作区中。
Notion 有意将复制的页面视为收件人的内容。Dodo Payments 无法在撤销时删除副本。

必需的配置

通过 API 创建

Webhooks

查看 entitlement_grant.* webhook events
  • entitlement_grant.created 会触发,并携带 status: "Pending",而 oauth_url 仍为 null;客户从交付邮件或 Customer Portal 启动接受流程后,Notion 授权 URL 会被填充。
  • 模板复制完成后,entitlement_grant.delivered 会触发。
  • 取消时,entitlement_grant.revoked 会触发;客户的副本不会受到影响。

故障排除

在客户完成 Notion OAuth 之前,授权会一直保持为 Pending。请重新发送交付邮件;OAuth 链接会在一周后过期,之后你可以撤销并重新创建该授权。
Entitlements → Integrations → Notion 重新连接 Notion 与拥有源模板的工作区。
Notion 不允许远程删除复制的页面。客户必须从他们自己的工作区删除副本。
最后修改于 2026年8月21日