订阅到期日期



我有一个有关应用程序购买的收据格式的问题。

主收据对象的字段称为 Subscription Expiration Date

但是,如果应用程序具有多种类型的续订订阅,该字段将反映什么?

它在文档中称为 Subscription Expiration Date,但是,如果您在JSON密钥的实际名称下方读取expires_date,只是想在您进行搜索狩猎之前指出这一点在您的应用中。

要回答您的问题,您将在文档中看到特定的键Subscription Expiration Date在称为In-App Purchase Receipt Fields的标题下列出。这意味着,我可以从自己的经验中确认,该密钥在应用程序内单独购买订阅以及随之而来的每一个续订都存在。这意味着可以进行多次购买,每种都可以作为他们自己进入收据,每个都有expires_date

如果要使用该密钥进行验证,则收据将具有从Apple服务器发送的请求日期。使用该日期查看这些订阅之一是否仍在运行。

希望这会有所帮助。

编辑:这是一个实际分析收据的示例。请注意,为了安全起见,我已删除了一些ID。在这里,您可以看到一张收据,在顶部,您可以看到收据特定的信息,然后一次购买,然后每年订阅约4次。

["original_purchase_date_pst": Optional(2013-08-01 00:00:00 
America/Los_Angeles), 
"bundle_id": Optional(yourAppBundleId), 
"receipt_creation_date_pst": Optional(2018-12-20 02:20:38 America/Los_Angeles), 
"receipt_type": Optional(ProductionSandbox), 
"app_item_id": Optional(0), "application_version": Optional(2), 
"request_date_pst": Optional(2018-12-20 02:20:41 America/Los_Angeles), 
"original_purchase_date_ms": Optional(1375340400000), 
"receipt_creation_date_ms": Optional(1545301238000), 
"in_app": Optional(<__NSArrayI 0x283b736b0>(
{
    "is_trial_period" = false;
    "original_purchase_date" = "2018-12-07 12:00:43 Etc/GMT";
    "original_purchase_date_ms" = 1544184043000;
    "original_purchase_date_pst" = "2018-12-07 04:00:43 America/Los_Angeles";
    "original_transaction_id" = XXXXXXXXXXXXX;
    "product_id" = "someSinglePurchase";
    "purchase_date" = "2018-12-07 12:00:43 Etc/GMT";
    "purchase_date_ms" = 1544184043000;
    "purchase_date_pst" = "2018-12-07 04:00:43 America/Los_Angeles";
    quantity = 1;
    "transaction_id" = 10000XXXXXXXXX;
},
{
    "expires_date" = "2018-12-07 13:01:21 Etc/GMT";
    "expires_date_ms" = 1544187681000;
    "expires_date_pst" = "2018-12-07 05:01:21 America/Los_Angeles";
    "is_in_intro_offer_period" = false;
    "is_trial_period" = false;
    "original_purchase_date" = "2018-12-07 12:01:22 Etc/GMT";
    "original_purchase_date_ms" = 1544184082000;
    "original_purchase_date_pst" = "2018-12-07 04:01:22 America/Los_Angeles";
    "original_transaction_id" = 10000XXXXXXXXX;
    "product_id" = "yearlySubscription";
    "purchase_date" = "2018-12-07 12:01:21 Etc/GMT";
    "purchase_date_ms" = 1544184081000;
    "purchase_date_pst" = "2018-12-07 04:01:21 America/Los_Angeles";
    quantity = 1;
    "transaction_id" = 10000XXXXXXXXX;
    "web_order_line_item_id" = 10000XXXXXXXXX;
},
{
    "expires_date" = "2018-12-07 14:01:35 Etc/GMT";
    "expires_date_ms" = 1544191295000;
    "expires_date_pst" = "2018-12-07 06:01:35 America/Los_Angeles";
    "is_in_intro_offer_period" = false;
    "is_trial_period" = false;
    "original_purchase_date" = "2018-12-07 12:01:22 Etc/GMT";
    "original_purchase_date_ms" = 1544184082000;
    "original_purchase_date_pst" = "2018-12-07 04:01:22 America/Los_Angeles";
    "original_transaction_id" = 10000XXXXXXXXX;
    "product_id" = "yearlySubscription";
    "purchase_date" = "2018-12-07 13:01:35 Etc/GMT";
    "purchase_date_ms" = 1544187695000;
    "purchase_date_pst" = "2018-12-07 05:01:35 America/Los_Angeles";
    quantity = 1;
    "transaction_id" = 10000XXXXXXXXX;
    "web_order_line_item_id" = 10000XXXXXXXXX;
},
{
    "expires_date" = "2018-12-07 15:01:35 Etc/GMT";
    "expires_date_ms" = 1544194895000;
    "expires_date_pst" = "2018-12-07 07:01:35 America/Los_Angeles";
    "is_in_intro_offer_period" = false;
    "is_trial_period" = false;
    "original_purchase_date" = "2018-12-07 12:01:22 Etc/GMT";
    "original_purchase_date_ms" = 1544184082000;
    "original_purchase_date_pst" = "2018-12-07 04:01:22 America/Los_Angeles";
    "original_transaction_id" = 10000XXXXXXXXX;
    "product_id" = "yearlySubscription";
    "purchase_date" = "2018-12-07 14:01:35 Etc/GMT";
    "purchase_date_ms" = 1544191295000;
    "purchase_date_pst" = "2018-12-07 06:01:35 America/Los_Angeles";
    quantity = 1;
    "transaction_id" = 10000XXXXXXXXX;
    "web_order_line_item_id" = 10000XXXXXXXXX;
}

相关内容

  • 没有找到相关文章

最新更新