jamesmontemagno / InAppBillingPlugin

Cross-platform In App Billing Plugin for .NET
MIT License
668 stars 153 forks source link

Android: How to get purchased base plan from GetPurchasesAsync? #632

Open MelissaW990 opened 1 month ago

MelissaW990 commented 1 month ago

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.

Screenshot 2024-10-02 at 15 29 02

Thanks, M

pulmuone commented 1 month ago

image

MelissaW990 commented 1 month ago

image

But these are five individual subscriptions yes? How are you handling the user upgrading/downgrading?

pulmuone commented 1 month ago

https://github.com/dmariogatto/azure-functions-iap-verify

pulmuone commented 1 month ago

image

But these are five individual subscriptions yes? How are you handling the user upgrading/downgrading?

https://github.com/dmariogatto/azure-functions-iap-verify