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

[iOS] Subscription auto renew status #150

Closed
3mini opened this issue Jan 12, 2018 · 2 comments
Closed

[iOS] Subscription auto renew status #150

3mini opened this issue Jan 12, 2018 · 2 comments

Comments

@3mini
Copy link
Contributor

3mini commented Jan 12, 2018

How can I get subscription auto renew status from getPurchaseData?

I want to know auto_renew_status in purchase.pending_renewal_info
(Note that: https://developer.apple.com/library/content/releasenotes/General/ValidateAppStoreReceipt/Chapters/ReceiptFields.html)

========================================================================
Subscription Auto Renew Status
The current renewal status for the auto-renewable subscription.
ASN.1 Field Type (none)
ASN.1 Field Value (none)
JSON Field Name auto_renew_status
JSON Field Value string, interpreted as an integer

“1” - Subscription will renew at the end of the current subscription period.
“0” - Customer has turned off automatic renewal for their subscription.

This key is only present for auto-renewable subscription receipts, for active or expired subscriptions. The value for this key should not be interpreted as the customer’s subscription status. You can use this value to display an alternative subscription product in your app, for example, a lower level subscription plan that the customer can downgrade to from their current plan.

@voltrue2
Copy link
Owner

voltrue2 commented Jan 12, 2018 via email

@voltrue2
Copy link
Owner

Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants