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

Connecting with web server #2

Open
webservsol opened this issue Jan 28, 2016 · 0 comments
Open

Connecting with web server #2

webservsol opened this issue Jan 28, 2016 · 0 comments

Comments

@webservsol
Copy link

Hi,

Nice app thanks for the share. Is it possible to use the same sample for different purpose which I’m building for my customer.

I have made an Android app for selling digital content where items can be purchased using in-app-billing. I need my server to be aware of the purchase. The decision to deliver app-specific data should be made on the server, not in the client app.

E.g.

User buys item X from Android Market.
Transaction data Y is sent automatically to the server. (Which includes Order ID, Customer’s First Name and Email)
Server delivers content if Y is valid.
Server returns the file as link to the client.
Client is redirect to page inapp. Says “Thanky for your purchase. Click Here to download the file”
How can this be accomplished? How do I verify that transaction data coming from the Android client (presumably originating from Google servers) is not fake?

Google Server -> Android client -> The server -> Android client

Perhaps this is more of a PHP question than anything else. The PHP function I’m using

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

1 participant