Check Google App purchases with Google Checkout?

I am putting an app on Google Play (fmr. Android Market) and now I am working on an in-app billing function. Android docs say you should do this by verifying the transaction signature with your public key, but I'm wondering if it would be easier to get the order information using the Google Checkout API. Something like the following:

OLD WAY

  • Android client buys something from the market
  • The market sends a response to the phone using nonce, signature, transactionid, etc.
  • Android phone or remote server verifies the transaction using the nonce (generated earlier) and signature.
  • If the transaction was confirmed, the purchase was valid, the credit customer with the item.

MY WAY

  • Android client buys something from the market
  • The market sends a response to the phone using nonce, signature, transactionid, etc.
  • Android phone send request to remote server with transaction
  • The remote server sends a google checkout API request for an order with a transaction and verifies that the transaction is cleared.
  • If the transaction is canceled, the credit customer with the item

Is it possible?

+3


source to share


2 answers


Maybe. The Google Checkout API is not available everywhere. If you have a vendor key, you can use it, but the key is not available in most countries. You will need to contact another server, but it looks like it should work. The question is, why haven't you tried yet?



+1


source


Your path looks pretty easily faked to me. For something as important as billing I would go with the recommended approach. This was thought out.



+1


source







All Articles