Skip to content
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

billingConnector.isPurchased(productInfo) == PurchasedResult.YES does not work #50

Open
edmundoto opened this issue Mar 16, 2023 · 8 comments

Comments

@edmundoto
Copy link

I am struggling to get this library to work, the only callback method that gives any data on app startup is onProductsFetched() and it gives no data as to what products are purchased or not, how are we supposed to know if the user cancelled or even bought a subscription or made a purchase?

I think the purpose of a library is supposed to be to simplify the complicated Google Play In App Billing process but this is just as bad in my opinion because it is impossible to get any useful information as to the state of a purchase and the method billingConnector.isPurchased(productInfo) == PurchasedResult.YES does not work whatsoever, I am not sure why this was even included in the example app if does nothing, I have spent days trying to figure this out and I feel more lost now than I started, highly frustrating and demoralizing.....

@moisoni97
Copy link
Owner

I think you just failed to understand the documentation.
What are you struggling with? Before I can help you I need to understand what is the problem...
I think the RemoveAdsExampleActivity example from the sample app is pretty straightforward.

@edmundoto
Copy link
Author

All of the callback methods return nothing at all that can be used to determine if the user purchased a product, the only method that returns anything is onPurchasedProductsFetched() and that only gives a list of available products, Since this is the only data the library provides I attempted to use the method billingConnector.isPurchased(productInfo) == PurchasedResult.YES and this returns false 100% of the time no matter if the product was purchased or not

@edmundoto
Copy link
Author

It would be helpful if you created some kind of flow so we can understand what your concept is for how this works because it seems just as or more confusing to understand than the original V5 billing library that Google put out

@moisoni97
Copy link
Owner

The library provides you every data that the Google Billing API returns.
Show me your implementation and I'll show you how to use the library....

Maybe billingConnector.isPurchased is indeed not working, I haven't tested it after the latest updates but you are not even required to use this method to check for purchased products...

@moisoni97
Copy link
Owner

Check the RemoveAdsExampleActivity example from the sample app. It shows you the correct logic to follow...

@edmundoto
Copy link
Author

How exactly do we restore previously purchased items when onPurchasedProductsFetched() consistently returns nothing?

@edmundoto
Copy link
Author

I was hoping this library would save me time instead I spent days trying to figure it out and now I have angry customers leaving me 1 star reviews

@moisoni97
Copy link
Owner

The library is working but you don't understand how to use it.
If you want help, show me your code, otherwise close the issue and move to other solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants