I'm using test ids. onPurchaseStateChange() gets called when user cancels the purchase but it's not called when when purchase is successful.
I've followed step2 mentioned in the below link but its still not working
http://stackoverflow.com/questions/12844132/onpurchasestatechange-not-getting-called/12948238#12948238