gpt4 book ai didi

ios - 服务器到服务器的响应主体是什么样的?

转载 作者:行者123 更新时间:2023-12-01 21:59:50 24 4
gpt4 key购买 nike

服务器到服务器的 responseBody 是什么样子的,我应该如何知道用户是取消订阅还是退款?我看过这个文档:https://developer.apple.com/documentation/appstoreservernotifications/responsebody ,但还是一头雾水。我还没有看到像cacellation_date这样的字段。我是否应该解析latest_receipt_info,然后如果用户cacel订阅,会有cacellation_datacacallataion_intent

最佳答案

取消字段仅适用于 Apple 支持为客户取消订阅的情况。在这种情况下,您会在服务器到服务器响应中获得 cancellation_date_ms 字段。

cancellation_date_ms

The time and date that Apple customer support canceled a transaction or the time and date the user upgraded an auto-renewable subscription.

更多详情 here .

cancellation_date 是收据本身的相应字段。

注意:cancellation_datecancellation_date_ms 都仅存在于生产 环境中。

要检查用户是否取消了您的订阅,您可以使用 expiration_intent(订阅过期的原因)。

You can use this value to:

  • Decide whether to survey the subscribers who have opted in to an account on your system or show alternative subscription products within the same group, if the value is “1”.
  • Decide whether to show the same or alternative subscription products, if the value is “2”, since the user did not actively make the choice to unsubscribe.
  • Decide whether to present a subscription offer to win back the user if the value is "1".

更多详情 here

关于ios - 服务器到服务器的响应主体是什么样的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60335857/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com