@neil6, I don’t specifically remember the details (because I haven’t really looked closely at IAP routines quite a while), but if you are using the sample code, it might help if you do number of print statements inside the transactionCallback function under transaction.state == “purchased” to figure out what you need to know, such as…
print("event.transaction.productIdentifier = ", event.transaction.productIdentifier)
-- you mentioned you have 5 products, so maybe try this too
for i=1,5 do
print("googleProductList[" .. i .."] = ", googleProductList[i])
end
Also, have you kept all of the print statements that come with the sample code? If you have, look very closely at what it’s printing. You should be able to figure out which product is being purchased fairly quickly and should be able to write up a savePurchase function with a parameter (to be called like savePurchase(1) for the purchase of a product listed first, and savePurchase(2) for the second product).
Good luck.
Naomi
[import]uid: 67217 topic_id: 30256 reply_id: 121514[/import]