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

thanks! #3

Open
camhart opened this issue May 20, 2019 · 6 comments
Open

thanks! #3

camhart opened this issue May 20, 2019 · 6 comments

Comments

@camhart
Copy link

camhart commented May 20, 2019

Just want to say thanks for this project. I'm using it and appreciate it.

@Deishelon
Copy link
Owner

Hey, glad you like it.
Would you be interested if I add iOS support as well?

@camhart
Copy link
Author

camhart commented May 20, 2019 via email

@Deishelon
Copy link
Owner

Correct, via https://buy.itunes.apple.com/verifyReceipt endpoint

@kuznetsov-from-wonderland

On iOS all the validation can be done serverless - I can do some docs for it.

By the way, I'd like to ask - here for Android we need just a single dependency - why this cannot be also implemented serverless, just as a module inside React Native app? 🤷‍♂️ Well for that I must embed the private key right in the app, but i guess it's quite safe - is it not?

@Deishelon
Copy link
Owner

@kromsik please note that this pkg is for server side (like nodejs), don't use it in RN app, especially with private key embedded in the app.

If you don't have a server, you still can validate the purchase serverless
In onPurchasesUpdated() you can check the purchaseState is PURCHASED

However, it's just recommended to have a backend server which you have full control. So you can know for sure that the purchase was correct & you can write something to db or enable in app features, and not just blindly trust whatever the app sends to the sever.

If you need more info: here is the official docs: https://developer.android.com/google/play/billing/billing_library_overview#Verify

Let me know if you have any questions :)

@JackyGohSG
Copy link

Thanks @Deishelon for creating this. I'm still new to this, so while implementing this I encounter a issue when I already had in app products in Google Play Console and the error is : "The project id used to call the Google Play Developer API has not been linked in the Google Play Developer Console."

And the solution is to set all your existing product as "INACTIVE", then save, then change to "ACTIVE" and save again.

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

4 participants