跳到主要内容
Refund Sensor

通知转发

把另一个平台的 Apple 通知送进 Refund Sensor,并把每个已验证事件的副本转发到你自己的系统。

两个方向

转发涵盖两种不同的需求:

  • 送进 Refund Sensor,当某个订阅平台已经占用了 Apple 唯一的通知 URL 并把副本转发给我们。
  • 从 Refund Sensor 送出,当你想把每个已验证事件的副本中继到你自己的后端。

把 Apple 的通知送到 Refund Sensor

Apple 只允许一个 App Store Server Notification URL。如果 RevenueCat、Adapty 或 Apphud 已经在用它,就保留它们的 URL,把它们的转发字段指向你的 Refund Sensor webhook URL。App Store Connect 里无需改动。

  • RevenueCat:在你 App Store 应用的 Apple Server to Server notification settings 中,把 Refund Sensor URL 粘贴到 Apple Server Notification Forwarding URL
  • Adapty:在 App settings → iOS SDK → App Store server notifications 中,粘贴到 URL for forwarding raw Apple events
  • Apphud:在 App settings → App Store → Notifications 中,粘贴到 Notifications forwarding URL

把事件转发到你自己的系统

Refund Sensor 也可以把每个已验证商店事件的副本中继到一个你控制的 URL,这样你不用第二次配置商店通知就能让自己的后端保持同步。每个应用都可以转发到它自己的目的地。

如何设置

在你应用的设置里,添加一个 Forward URL 和一个密钥。转发在连接验证后开始,每个转发的事件都带有商店发送的相同载荷,所以你的下游逻辑看到的是原始数据。

On this page