-
Notifications
You must be signed in to change notification settings - Fork 293
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
Comments
Hello
With the current version of the library, you will have to read it form the raw response data that is returned by .validate();
It is the object you feed to .getPurchaseData();
Cheers
… On Jan 12, 2018, at 15:56, Sangmin Lee ***@***.***> wrote:
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
superandrew213
pushed a commit
to superandrew213/in-app-purchase
that referenced
this issue
Jan 27, 2018
Closing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: