简体   繁体   中英

How to get expiry date of a Non-renewing subscription

I want to know how to check non-renewing subscription expiration for iOS7.

While doing receipt validation Iam getting SubExpDate = ""; After successful receipt validation I am getting data as

        CancelDate = "";
        OriginalPurchaseDate = "2015-04-17T09:56:14Z";

        OriginalTransactionIdentifier =
        ProductIdentifier = ;
        PurchaseDate = "2015-04-22T05:46:55Z";
        Quantity = 1;
        SubExpDate = "";
        TransactionIdentifier =;
        WebItemId = 0;

How to calculate expiry date? Any help to proceed?

Based on This documentation the receipt will never return the expiry date. Therefor you need to calculate it yourself. You can either create a backend service that keep the record of each product expiration duration or embed it directly in your app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM