We just ran a test of Google In-App-Billing where we made a purchase, then “cancelled” it from our merchant interface at Google. This is basically the way to refund the purchase. When we monitor the response back to our client, much to our surprise, instead of getting a “refunded” event, we got a “cancelled” event.
The question is - is this a bug? Or, is this just the way Google works, and we should just deal/live with it?
Below are the 2 traces (from print statements) I got from my device. Hopefully they are self-explanatory.
Thanks!
Original Purchase Request:
I/Corona ( 8942): DEBUG: IAPUtil transactionCallback: Received event storeTransaction
I/Corona ( 8942): DEBUG: txn.state purchased
I/Corona ( 8942): DEBUG: txn.date Wed Oct 10 15:13:08 PDT 2012
I/Corona ( 8942): DEBUG: txn.identifier -3172582031326306949
I/Corona ( 8942): DEBUG: txn.productIdentifier com.sx.puzzingo.animals
I/Corona ( 8942): DEBUG: txn.receipt 666035658728184
I/Corona ( 8942): DEBUG: txn.originalDate:
I/Corona ( 8942): DEBUG: txn.originalID
I/Corona ( 8942): DEBUG: txn.originalReceipt
I/Corona ( 8942): DEBUG: txn.errorType none
I/Corona ( 8942): DEBUG: txn.errorString
Upon cancelled/refund:
I/Corona ( 9351): DEBUG: IAPUtil transactionCallback: Received event storeTransaction
I/Corona ( 9351): DEBUG: txn.state cancelled
I/Corona ( 9351): DEBUG: txn.date Wed Oct 10 15:13:08 PDT 2012
I/Corona ( 9351): DEBUG: txn.identifier 4988148081506781945
I/Corona ( 9351): DEBUG: txn.productIdentifier com.sx.puzzingo.animals
I/Corona ( 9351): DEBUG: txn.receipt 666035658728184
I/Corona ( 9351): DEBUG: txn.originalDate:
I/Corona ( 9351): DEBUG: txn.originalID
I/Corona ( 9351): DEBUG: txn.originalReceipt
I/Corona ( 9351): DEBUG: txn.errorType cancelled
I/Corona ( 9351): DEBUG: txn.errorString
[import]uid: 41124 topic_id: 31836 reply_id: 331836[/import]