-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Android: How to get purchased base plan from GetPurchasesAsync? #632
Comments
https://github.com/dmariogatto/azure-functions-iap-verify |
@MelissaW990 - I'm not so sure you can. But... if you use the Google.Apis.AndroidPublisher.v3 SubscriptionsV2 endpoint, you can drill into the SubscriptionPurchaseMetadata response object and pull it from the LineItems. Specifically, LineItem has an OfferDetails object on the response which has the basePlanId. edit the one thing about this endpoint that I find extremely aggravating is that it only ever returns the "latest" details for that particular purchaseToken. There is no way to get a full listing of transactions for a particular user. |
In the scenario where a user needs to restore their subscription and the subscription has multiple base plans for different levels of functionality in the app, how can I identify what base plan the user has subscribed to?
Calling the 'GetPurchasesAsync' method returns the subscription details, but nowhere in this information (that I can identify) is the Base Plan ID or token that is passed to the 'PurchaseAsync' method.
Thanks, M
The text was updated successfully, but these errors were encountered: