- Home /
Prime31 StoreKit Question
I'm trying to find out how to tell if a customer makes a NEW purchase or is doing a RESTORE purchase. I use Prime31's StoreKit plugin, and so far they've not provided any solutions aside from using the unique device ID, which doesn't actually solve the problem since users on my app can purchase on one device and then restore on another. (I'm paying royalties per download to some artists, and would prefer to make it all automated and not have to look up sales figures each month)
Can anyone think of a way?
Unfortunately, if I'm not mistaken, it seems that with the plugin / apple, a "restore" call simply returns a "successful sale", without any way to tell if the "sale" was new or not.
Late response - but did you work this out?
What kind of In-game purchasables have you set up on the Apple side (e.g. are they consumable or non-consumable, subscription etc)
So you're saying what you want is that one person downloads an item onto their phone, if they delete their app on the phone or install the app on another device (iPad), you want them to pay for the item again rather than be able to restore the purchase? If so, just make it a consumable product, not non-consumable.
Hey SFB
THis is the "dirty little secret" of doing IAP in app purchases.
In fact you must use your server to check that transactions are unique. It's just one of those weird things - you never or rarely see this mentioned on forums.
Apple have pages of documentation explaining that, these days, your server must confirm the receipt for you. But they never even mention in passing "oh it's up to your server to assure receipts are only being used once."
Your use case (across devices, installs, etc) is just a more complex version.
The fact is it all has to be done on your servers, using a database and lots of code etc.
The issue is unrelated to Prime31 - their plugins work great. the sad fact is you have to do all you say using your servers.
Basically I'm just checking the server vs. Apple's logs, and making manual adjustments. Even confir$$anonymous$$g the receipts on my server doesn't allow for differentiating between a new and a restore purchase, unfortunately.
Correct, depending on exactly what you mean -- there is absolutely no solution.
Note that if your users $$anonymous$$UST LOGIN WITH YOU (you know, like "Join the Disney club - give us a username and pass") ... of course then you can solve the problem.
I can absolutely confirm your intuitiion that (in a word) it is not possible to do what you say.
Your answer
Follow this Question
Related Questions
Problem with Prime31's StoreKit implementation 0 Answers
Prime31 storekit find product ID but not product description 0 Answers
How to unlock iphone game using prime31 storkit plugin? 0 Answers
PlayerPrefs to Unlock Object question 1 Answer
Prime31 StoreKit: How to restore multiple purchases? 0 Answers