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.

1. User buys item X from Android Market.
2. Transaction data Y is sent automatically to the server. (Which includes 
Order ID, Customer's First Name and Email)
3. Server delivers content if Y is valid. 
4. Server returns the file as link to the client.
4. 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
// Fetch all the order details from Woocommerce
$products = array();
$_name = $order->billing_first_name.' '.$order->billing_last_name;
$_email = $order->billing_email;
$lastOrderId = $order->id;

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/085150ad-df11-46fb-8124-47cbd810463d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to