How to deal with in app purchases?

You filed a bug report. Each bug report as a unique ID that we call “CaseID”. The ID of your bug report is 46644. You should have gotten an email that confirmed the bug submission and that Number was in the subject of that email.

We usually ask bug fillers to post the CaseID number to the forum thread so later when you ask “Hey Rob’s what’s going on with this”, I can then go look up the bug.

Rob

Ok, thanks for your reply.

But I really don’t understand why it would print that it had already been purchased although it was the first time I did so…

You may have purchased it in the past.

Ok, thanks for the explanation.

Pierre

Then, shall I create a new item to purchase?

And, I just have a last question. You said that I should see a lovely $0.99 purchase from you this morning. But I cannot see it… Where shall I see this kind of information?

I wouldn’t create a new test item. Most people create new test accounts.

You will have to use Google and search for tutorials on how to use Google Play’s developer interface. Look around for reports. It may take a day for it to show up. And it won’t likely show as from me. It may be in Google Wallet or wherever your reports are.

Rob

I created a new test account but again, it said that I had already purchased the item. And, previously, I had also reseted the phone to make sure that the last email adress would not be present in the phone anymore.

In fact, it only worked when I went to settings, account details and added the test email adress… But then, the app crashed and I don’t know why…

Pierre

The crash sounds like it’s a problem with your setup and most likely your licensing key not being correct. You might want to double check it. And yes, you will have to have your device logged into your test account to do the purchase. And you will have to do this each time. But while you’re testing, you’re not supposed to be using your live products. Google gives specific testing products: one that will succeed, one that will fail etc.

See: https://developer.android.com/google/play/billing/billing_testing.html

Scroll down to where it reads “There are four reserved product IDs for testing” to get the test products you should be using.

Rob

Ok, thanks for your reply.

I saw an “invalid public key” in the console output. Does that mean the licensing key is not correct. And, in the licensing key provided by google in the console, there were lots of “+” or “/”, do I have to remove them?

Pierre

I’ve not touched the Google IAP portal in months. I would search google, find the IAP setup documents or find a tutorial on setting up IAP for Google and make sure you’ve done everything correctly.

Rob

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