Hello. I’m setting in app purchases for my android game, and I have seen same strange behaviors that looks to be some kind of bug.
In my game I have 3 buttons to allow users to buy “coins”
10.000 coins
25.000 coins
40.000 coins
The purchase works but when the callback function is called, event.transaction.productIdentifier get’s a wrong value, if it is not the first purchase of the user on the game.
Checking the logs generated by print("receipt: " … tostring(event.transaction.receipt)) I noticed, that the callback doesnt return just the last purchase, but it returns the last 10 purchases, and event.transaction.productIdentifier will return the first productId of the purchase list, and not the last one as it should.
This is how it looks:
receipt: {"nonce":2643703143987774433,"orders":[{"notificationId":"2120875375272880860","orderId":"12999763169054705758.1361928580590696","packageName":"net.game.name","productId":"10000coins.gamename","purchaseTime":1374610594000,"purchaseState":0,"purchaseToken":"xwxommmsyyomngprqwwpnmri"},{"notificationId":"-5087359489997754121","orderId":"12999763169054705758.1317937227200979","packageName":"net.game.name","productId":"10000coins.gamename","purchaseTime":1374610661000,"purchaseState":0,"purchaseToken":"ianelarmopftqqtxgsglusns"},{"notificationId":"-8809612338636471508","orderId":"12999763169054705758.1314428912834317","packageName":"net.game.name","productId":"25000coins.gamename","purchaseTime":1374610720000,"purchaseState":0,"purchaseToken":"dycnukexzquoluhattmehohq"},{"notificationId":"5244043765150494203","orderId":"12999763169054705758.1333974387111916","packageName":"net.game.name","productId":"10000coins.gamename","purchaseTime":1374610780000,"purchaseState":0,"purchaseToken":"grehrtyyzdhbyynshrzphwuo"},{"notificationId":"4634449798447896352","orderId":"12999763169054705758.1373356492242957","packageName":"net.game.name","productId":"10000coins.gamename","purchaseTime":1374610804000,"purchaseState":0,"purchaseToken":"tcmraordzttjesdekcpnamjk"},{"notificationId":"7217312897016584546","orderId":"12999763169054705758.1323725642031193","packageName":"net.game.name","productId":"10000coins.gamename","purchaseTime":1374610849000,"purchaseState":0,"purchaseToken":"vqlppfunuyomlabkyttduxni"},{"notificationId":"-7008381092592509620","orderId":"12999763169054705758.1339380580697182","packageName":"net.game.name","productId":"40000coins.gamename","purchaseTime":1374611152000,"purchaseState":0,"purchaseToken":"yjoqkohafzwppulznxwqlxlp"},{"notificationId":"-1090875021658922717","orderId":"12999763169054705758.1352732450791116","packageName":"net.game.name","productId":"10000coins.gamename","purchaseTime":1374611316000,"purchaseState":0,"purchaseToken":"uncliflpqdmqpvktvftwsnqx"},{"notificationId":"-939834656069426704","orderId":"12999763169054705758.1367275796937765","packageName":"net.game.name","productId":"25000coins.gamename","purchaseTime":1374612206000,"purchaseState":0,"purchaseToken":"pderxjndgwypezgxktuaacyg"},{"notificationId":"-2400558402594912129","orderId":"12999763169054705758.1329423969997620","packageName":"net.game.name","productId":"40000coins.gamename","purchaseTime":1374612352000,"purchaseState":0,"purchaseToken":"cbdwvbnuzcfiwsdanibtgxib"}]} I/Corona ( 3755): signature: VERYBIGSIGNATURECODE==
I’m almost sure this is a bug, so I’d like to hear something from the staff.
For iOs it gets the right responses.
Another bug that I noticed is that even my credit card being not accepted, the result was “purchased”