Skip to content

Connecting with web server #2

@webservsol

Description

@webservsol

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions