Hello! I have several questions about in-app purchases article and would be very pleased if you'll help me. If you have an answer for only one question or only subquestion don't be shy to answer, it will help much!
- How to distinguish a type of in-app purchase from the response?
I mean in response to /verifyReceipt query you send JSON object, which also contains (responseBody->Receipt) information about receipt, but there is no some kind of type
field and I'm a little bit confused. Maybe there is a difference between non-consumable and auto-renewable subscription (for example non-consumable doesn't have latest_receipt
actually) but how to distinguish non-consumable purchase from non-renewable subscriptions?
- Does in-app array change according to actual active purchases for user?
Determine which products the user purchased. Purchases for non-consumable products, auto-renewable subscriptions, and non-renewing subscriptions remain in the receipt indefinitely (from here)
Imagine user subscribe for auto-renewable subscriptionA and I get the receipt (receipt1
) for this purchase. If subscriptionA auto-renewed then:
a. will in-app array contain information for new subscriptionA purchase (actually I need new expiration_date) if I'll send receipt1
request on /verifyReceipt? (Or more generally: Can I track subscriptionA status for some user using one of receipt?)
b. will in-app array contain 2 items in this case, or it'll just update date for old object? will multiple puchases of non-renewing subscription (with same productId) appear multiple times?
c. Even more generally (a): Can I track all in-app purchases of some user using this receipt1
and scanning in-app array?