我正在实施Apple 的应用内购买编程指南中的状态更新通知。 https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/Subscriptions.html
我已经设置了订阅状态 URL,并且收到了来自苹果服务器的响应,但是我无法在文档的表 6-3 中获取original_transaction_id键。使用此密钥,我可以获得单个客户订阅的交易收据吗?
我意识到我得到了 original_transaction_id
领域latest_receipt_info
。外部键的值是否相同original_transaction_id
(与 latest_receipt_info 相同级别的对象键)?
[更新]
这篇文章说我们将使用original_transaction_id
来检测客户收据。问题是我无法获得original_transaction_id
苹果服务器响应的字段。我怎么了?
在收到自动续订订阅的 Apple statusUpdateNotification 时,您如何确定客户/用户?
我的回应有
{
latest_receipt: base 64 code,
latest_receipt_info:
{ original_purchase_date_pst: '2017-07-30 21:06:59 America/Los_Angeles',
purchase_date_ms: '1502436055000',
unique_identifier: 'aa68f27daea1c90b8xxxxxxxxxxx02485e0b80de3',
original_transaction_id: '10000xxxx972063',
expires_date: '1502436355000',
transaction_id: '10000xxx23641817',
original_purchase_date_ms: '1501474019000',
web_order_line_item_id: '10000000xxxxxx38',
bvrs: '627',
unique_vendor_identifier: '5E5C6E0F-xxxxxxxxxxxx-DFE8D5F8E568',
expires_date_formatted_pst: '2017-08-11 00:25:55 America/Los_Angeles',
item_id: '1177296522',
expires_date_formatted: '2017-08-11 07:25:55 Etc/GMT',
product_id: 'fisadhasdjasjdjjj',
purchase_date: '2017-08-11 07:20:55 Etc/GMT',
original_purchase_date: '2017-07-31 04:06:59 Etc/GMT',
bid: 'xxxxxxxxxxxxxxxxxx',
purchase_date_pst: '2017-08-11 00:20:55 America/Los_Angeles',
quantity: '1' },
environment: 'Sandbox',
auto_renew_status: 'true',
password: 'xxxxxxxxxxxxxxxxxxxxxxxxxx',
auto_renew_product_id: 'fisadhasdjasjdjjj',
notification_type: 'RENEWAL' }
缺少original_transaction_id
钥匙