I'm putting an app up on Google Play (fmr. Android Market) and now i'm working on the in-app billing feature. The Android docs say you should do this by verifying the signature of the transaction with your public key, but i'm wondering if retrieving the order information with the Google Checkout API would be easier. Something like the following:
OLD WAY
- Android customer purchases something on the market
- Market sends response to phone with nonce,signature,transactionid,etc
- Android phone, or remote server verifies the transaction using the nonce (generated earlier) and the signature.
- If the transaction was verified, the purchase was valid, credit customer with item.
MY WAY
- Android customer purchases something on the market
- Market sends response to phone with nonce,signature,transactionid,etc
- Android phone sends request to remote server with transactionid
- Remote server sends a request to the google checkout API for an order with the transactionid, and verifies that the transaction has cleared.
- If the transaction has cleared, credit customer with item
Is this possible?