Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get Original Purchase Date and Subscription Expiration Date for all receipts? #190

Closed
6 of 9 tasks
bizz84 opened this issue Apr 24, 2017 · 2 comments
Closed
6 of 9 tasks
Labels
area: receipt-validation validating receipts for customer or purchase verification

Comments

@bizz84
Copy link
Owner

bizz84 commented Apr 24, 2017

Platform

  • iOS
  • macOS
  • tvOS

In app purchase type

  • Consumable
  • Non-consumable
  • Auto-Renewable Subscription
  • Non-Renewing Subscription

Environment

  • Sandbox
  • Production

Version

0.8.5

Related issues

None

Report

From Apple - Working with Subscriptions:

keep a record of the date that each piece of content is published. Read the Original Purchase Date and Subscription Expiration Date field from each receipt entry to determine the start and end dates of the subscription

Issue summary

Currently, SwiftyStoreKit only returns whether a given subscription is .purchased, .expired or .nonPurchased with an expiry date.

Clients need to manually parse the receipt returned by verifyReceipt if they want to check the Original Purchase Date and Subscription Expiration Date fields from each receipt entry.

It would be convenient if SwiftyStoreKit had a way of making this information easily available.

What did you expect to happen

Be able to get Original Purchase Date and Subscription Expiration Date fields from each receipt entry without parsing the receipt manually.

What happened instead

The receipt needs to be parsed manually to get all subscriptions info.

@bizz84 bizz84 added the area: receipt-validation validating receipts for customer or purchase verification label Apr 24, 2017
@bizz84
Copy link
Owner Author

bizz84 commented Apr 24, 2017

Note: This piece of work should be done once #192 is merged.

@bizz84
Copy link
Owner Author

bizz84 commented May 11, 2017

Available on pod version 0.9.0.

@bizz84 bizz84 closed this as completed May 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: receipt-validation validating receipts for customer or purchase verification
Projects
None yet
Development

No branches or pull requests

1 participant