How to deal with in app purchases?

Ok, but I could not find any information on whether I have to remove these “+” or “/”… Do you have any idea?

Pierre

In fact, I had deleted these “+” and “/” but I should not have… I changed my licensing key and now I don’t get the error anymore.

However, I tried to use IAP badger again but unfortunately, even when I try with a new test account, it still says “Error You have already purchased this item”… Any ideas? Has anyone already experienced this problem?

The problem is that I have already used the fake products to make sure everything worked ok but now that I try with real products, I have lots of problems…

Thanks in advance

Pierre

You will need a different testing account. Each account can only buy the item once. Or if you’re going to be testing buying a lot. Use the test ID I linked to earlier. You can buy it an unlimited number of times.

Rob

Ok, but this time, I had created a new testing account (new email adress)… So I was wondering why I would get this error…

You’ve kind of lost me. What error are you getting now? If it’s still “This has already been purchased” then I’ve given you the two solutions: create a new account, login with it and run it or use the Android default testing item.

Hi,

I’m really sorry if I have lost you.

Yes I’m still getting this error “This item has already been purchased” although again I have created a brand new test account with no activity. And again, I got this message. I cannot see the origin of this message as I am sure I have never purchased anything with this account…

But, when I tried to restore, everything worked perfectly, as it should. So, do you think I can consider it works and publish my app like that?

Thanks in advance

Pierre

Did you make sure your device was logged in with the new account?

Yes, I reseted the device and logged with the new account. And yes, I made sure my device was logged in with the new account.

Well I can’t really advise you on if you should release or not. You have to make that decision if you’re comfortable with the game as is and if you think you’ve done adequate testing.

Rob

Ok, thanks for your reply.

It seems really strange…

I just tried to restore products from an account which had not purchased yet and nothing happened. Then, I tried to purchase the item and again, I got the message “Error You have already purchased this item”. And then, I tried to restore and it worked as it should (I got the item and the ads were removed).

Has anyone got an idea?

Pierre

Hi,

Could anyone please test this app and try a purchase. Here is the apk:

https://play.google.com/apps/testing/com.acme.game.test.IAP

Thanks in advance

Pierre

And I forgot to tell you that you can try a purchase by touching the button “Defies” with chains above it.

Hi Pierre,

Using IAP Badger is completely optional: you can always implement IAP directly using the Corona plugins for Apple IAP, Google IAP, and/or Amazon IAP. Which of these platforms do you intend to target?

Brent

Please see my reply in your other post and see if that resolves the issue

Thanks for your reply.

I intend to target Apple and Google.

Do you know any tutorial or code for the implementation of IAPs?

Pierre

I have just implemented IAP directly using the Corona plugins for Apple IAP and Google IAP but unfortunately, I still get the same issue…

Has anyone already encountered this kind of issue?

It is one of the last thing I have to do before publishing and I have already spent a lot of time trying to solve the problem unsuccessfully…

As far as I know, you are the only person experiencing this. You have to be executing code twice in your app. Perhaps  you have something in the system event handler (suspend, resume, start) that’s executing a function you’re calling directly.

Rob

Hi,

Could anyone please test this project which causes two windows to open?

Thanks in advance

Pierre

Has anyone tried that code?