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