store.restore() - How to identify my product-id

Hi all,

currently I’m developing the in app purchasing code for a game. The straight way of simply purchasing the product by using the store.purchase() function works fine now. But I don’t know how to use the store.restore() function.

Ok, I read the documentation and now that I just have to call the store.restore() function and afterwards my call-back function get’s called. But how do I tell the store the product ID that I want to be restored? There is no possibillity to do so since the store.restore() function doesn’t take any parameters.

Will my callback function be called once for every single product that I ever bought? I think (and hope) that this is not the way.

Currently I’m receving a transaction with the state “failed” when I use the store.restore() function.
Thanks for your help

Andreas [import]uid: 119268 topic_id: 29027 reply_id: 329027[/import]

i am not sure, but as far as i know, the callback function gets called for every product you have. in your callback function, you can distinguish between the different products and take according steps within this event type in the callback function.

I can’t really tell you why you get the failed state. It’s working here. [import]uid: 90610 topic_id: 29027 reply_id: 116824[/import]