我一直在Sandbox中使用新的Apple状态更新通知来进行自动续订订阅。但是,latest_receipt_info字段似乎与iOS 7样式收据不匹配(例如,没有in_app字段)。
这对于Sandbox来说是唯一的吗?或者这是我期望通知在Product中工作的方式吗?
使用Apple验证后从状态更新通知收到的示例收据:
{
"auto_renew_status": 0,
"latest_expired_receipt_info": {
"original_purchase_date_pst": "2018-01-19 16:03:00 America/Los_Angeles",
"unique_identifier": "9d89432f1fae59f25c05d44553fe40438a865b9f",
"original_transaction_id": "1000000368245564",
"expires_date": "1517368991000",
"transaction_id": "1000000371718901",
"quantity": "1",
"product_id": "abc",
"bvrs": "721180.450460032",
"bid": "ab.bc",
"unique_vendor_identifier": "9982B084-BE66-4622-ACCB-6C5B3D9C4CD4",
"web_order_line_item_id": "1000000037662245",
"original_purchase_date_ms": "1516406580000",
"expires_date_formatted": "2018-01-31 03:23:11 Etc/GMT",
"purchase_date": "2018-01-31 02:53:11 Etc/GMT",
"is_in_intro_offer_period": "false",
"purchase_date_ms": "1517367191000",
"expires_date_formatted_pst": "2018-01-30 19:23:11 America/Los_Angeles",
"is_trial_period": "false",
"purchase_date_pst": "2018-01-30 18:53:11 America/Los_Angeles",
"original_purchase_date": "2018-01-20 00:03:00 Etc/GMT",
"item_id": "1326212778"
},
"status": 21006,
"auto_renew_product_id": "abc",
"receipt": {
"original_purchase_date_pst": "2018-01-19 16:03:00 America/Los_Angeles",
"unique_identifier": "9d89432f1fae59f25c05d44553fe40438a865b9f",
"original_transaction_id": "1000000368245564",
"expires_date": "1517359990000",
"transaction_id": "1000000371686472",
"quantity": "1",
"product_id": "abc",
"bvrs": "721180.450460032",
"bid": "ab.bc",
"unique_vendor_identifier": "9982B084-BE66-4622-ACCB-6C5B3D9C4CD4",
"web_order_line_item_id": "1000000037544589",
"original_purchase_date_ms": "1516406580000",
"expires_date_formatted": "2018-01-31 00:53:10 Etc/GMT",
"purchase_date": "2018-01-31 00:23:10 Etc/GMT",
"is_in_intro_offer_period": "false",
"purchase_date_ms": "1517358190000",
"expires_date_formatted_pst": "2018-01-30 16:53:10 America/Los_Angeles",
"is_trial_period": "false",
"purchase_date_pst": "2018-01-30 16:23:10 America/Los_Angeles",
"original_purchase_date": "2018-01-20 00:03:00 Etc/GMT",
"item_id": "1326212778"
},
"expiration_intent": "1",
"is_in_billing_retry_period": "0"
}