gpt4 book ai didi

ios - Apple IAP 收据/状态通知中 cancellation_date 字段的格式是什么

转载 作者:行者123 更新时间:2023-11-29 11:40:28 28 4
gpt4 key购买 nike

有关服务器到服务器通知的 Apple 文档没有指定 cancellation_date 字段中的数据格式。我正在尝试为我的通知处理程序设置一些单元测试,但我不确定要将哪些数据放入我的模拟响应中。

我假设它是自纪元以来的毫秒数,但在文档中注明其他字段的地方,取消日期字段只是读取“Apple 客户支持取消交易的时间和日期。”

谁能确认 cancellation_date 字段中的日期格式?

最佳答案

我今天确实找到了这个:

if the receipt status is 21006 and there is a key named cancellation_date, then it’s a cancellation, you can find the new expiration date in that key but it’s a formatted date, if you need a better value to parse check for receipt['latest_expired_receipt_info']['cancellation_date_ms'] same as expires_date

Notification of cancellation of auto-renewal for an in-app purchase

我现在也在生产中证实了这一点。 latest_expired_receipt_info 有一个 cancellation_date_ms 属性,通知本身的根目录中也有。 cancellation_date 是格式化的日期字符串。

这是部分生产通知:

{
“环境”:“产品”,
"auto_renew_status": "假",
“latest_expired_receipt_info”:{
"original_purchase_date_pst": "2018-01-25 11:59:25 美国/洛杉矶",
"取消日期_毫秒": "1517150504000",
“取消原因”:“0”,
"original_purchase_date_ms": "1516910365000",
"expires_date_formatted": "2019-01-25 19:59:23 Etc/GMT",
"is_in_intro_offer_period": "假",
"purchase_date_ms": "1516910363000",
"expires_date_formatted_pst": "2019-01-25 11:59:23 美国/洛杉矶",
"is_trial_period": "假",
“过期日期”:“1548446363000”,
“取消日期”:“2018-01-28 14:41:44 等/格林威治标准时间”,
"purchase_date": "2018-01-25 19:59:23 Etc/GMT",
"cancellation_date_pst": "2018-01-28 06:41:44 America/Los_Angeles",
"purchase_date_pst": "2018-01-25 11:59:23 美国/洛杉矶",
“original_purchase_date”:“2018-01-25 19:59:25 Etc/GMT”
},
“取消日期_毫秒”:“1517150504000”
}

关于ios - Apple IAP 收据/状态通知中 cancellation_date 字段的格式是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46941493/

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