Android Question Verify Play Store App Subscription via PHP

tsteward

Well-Known Member
Licensed User
Longtime User
Not exactly b4x but certainly can be useful to a lot of us, so sorry if this is in the wrong place.

Does anyone have an example of how to verify that a user has a current subscription via PHP.
I want to up the security of my app and only allow valid users through to online content.
I know I can do this in the app and I do, but hackers can also access this code easily and are already hacking my app and offering subscription free versions.
 

tsteward

Well-Known Member
Licensed User
Longtime User
Yes I found this and think it must be possible, I just don't understand how to use it.
You need oauth before you can get any info from rest.

I was hoping someone had done this before and could help. Figured I couldn't be the first with all the great developers here.
I just don't understand how to use it.
 
Upvote 0

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
I did connect to Google Cloud some time ago, I remember that I used a service account which turned out to be much simpler.
I will see if I can dig out the code. I remember most of the work was in the configuration. This will be b4j code though.

I found this library for PHP which will take some of the work out of setting it up in PHP
 
Upvote 0
Top