youknowone / itunes-iap

Apple iTunes In-app purchase verification tool
http://itunes-iap.readthedocs.io
Other
136 stars 50 forks source link

Bit of doco on auto_renew_status #43

Closed christianpbrink closed 7 years ago

christianpbrink commented 7 years ago

I noticed (by a quick search of the repo) that you added some machinery around this new field Apple has added. Can you give an example of how to access it through your library's API?

youknowone commented 7 years ago

Hello, the new features are not released yet. So if you want to try it, you should install master branch (probably using pip).

A test including the feature: https://github.com/youknowone/itunes-iap/blob/master/tests/receipt_test.py#L34

An example code:

import ituensiap
response = itunesiap.verify('''<your receipt data>''')
pending_info = response.pending_renewal_info[0]  # first pending renewal info. don't forget to iterate it for all renewal info
assert pending_info.expiration_intent == 1
assert pending_info.is_in_billing_retry_period == 0
assert pending_info.auto_renew_status == 0
christianpbrink commented 7 years ago

Thanks!

On Mon, Jul 31, 2017 at 12:50 AM Jeong YunWon notifications@github.com wrote:

Hello, the new features are not released yet. So if you want to try it, you should install master branch (probably using pip).

A test including the feature: https://github.com/youknowone/itunes-iap/blob/master/tests/receipt_test.py#L34

An example code:

import ituensiap response = itunesiap.verify('''''') pending_info = response.pending_renewal_info[0] # first pending renewal info. don't forget to iterate it for all renewal infoassert pending_info.expiration_intent == 1assert pending_info.is_in_billing_retry_period == 0assert pending_info.auto_renew_status == 0

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/youknowone/itunes-iap/issues/43#issuecomment-318994564, or mute the thread https://github.com/notifications/unsubscribe-auth/AAbapz6F57trc0l2b6WCXomc7raIFy0Yks5sTYdNgaJpZM4OoAyP .

-- Sent from my iPhone

youknowone commented 7 years ago

2.5.0 is released